Custom Prompting

Learn how to add your own prompts to our AI Search feature.

Out of the box, our AI Search feature uses default prompts to help fine-tune search results. You can reference these in our system prompts file.

That said, you can customize and add your own prompts to fine-tune results to your liking.

Customizing Prompts

1

Getting Started

Run Fern upgrade to ensure you have the latest generators installed.

2

Configure docs.yml

Edit the docs.yml file to include the ai-search tab. Please reference below for an example.

AI Search Snippet
1ai-chat:
2 system-prompt:
3 [Insert your custom prompt here]
3

Add in your custom prompts

Insert your custom prompts in the system-prompt field. Anthropic has a great guide that can help provide ideas and examples for your custom prompts. You can also leverage Fern’s system prompts as a starting point.