Setup
Basic setup
Enable Ask Fern by adding the ai-search configuration to your docs.yml file:
After you enable Ask Fern, it needs to index your content before the side panel can appear on your site. This typically takes a few minutes, though sites with extensive custom components may take longer.
Configuration
ai-search.location
Specifies where Ask Fern will be available. Options:
docsenables Ask Fern on your documentation siteslackenables Ask Fern in Slackdiscordenables Ask Fern in Discord
Most users should enable Ask Fern for both docs and either slack or discord. See the Slack app documentation for Slack setup instructions.
ai-search.datasources
Additional content sources that Ask Fern should index and search.
datasources.url
The URL of the website to index. Ask Fern will crawl and index the content from this URL.
datasources.title
An optional display name for this datasource. This helps users understand where the information is coming from when Ask Fern cites content from this source.
ai-search.system-prompt
By default, Ask Fern uses system prompts to finetune AI search results. Add a custom prompt here to override it.
See Anthropic’s prompting guide for ideas and examples.