A set of functions to manage and apply prompts for AI search services. These functions allow you to create, maintain, and use a library of effective prompts for different AI assistants and scenarios.
Details
The prompt management system works with multiple levels of prompts:
System-level prompt: Set with
ai_prompt()
, applies across all AI servicesService-specific prompts: Set with
options()
or in function callsDefault prompts: Built-in prompts that ship with the package
When a search is performed, prompts are applied in this order, with the query at the end.