ai_prompt_management | R Documentation |
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.
The prompt management system works with multiple levels of prompts:
System-level prompt: Set with ai_prompt()
, applies across all AI services
Service-specific prompts: Set with options()
or in function calls
Default 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.