Skip to content

Commit 82ca9a6

Browse files
docs: add documentation for ai-search locations and datasources configuration (#1302)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Sahil <[email protected]>
1 parent adcb871 commit 82ca9a6

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

fern/products/ask-fern/ask-fern.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ navigation:
1111
contents:
1212
- page: Custom prompts
1313
path: ./pages/configuration/custom-prompting.mdx
14+
- page: Locations and datasources
15+
path: ./pages/configuration/locations-and-datasources.mdx
1416
- page: Guidance
1517
path: ./pages/features/guidance.mdx
1618
- page: Documents
@@ -36,4 +38,4 @@ navigation:
3638
- customers
3739
layout:
3840
- page: Overview
39-
path: ./pages/getting-started/api-get-started.mdx
41+
path: ./pages/getting-started/api-get-started.mdx
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: Locations and Datasources
3+
subtitle: Configure where Ask Fern is available and what content it can access.
4+
---
5+
6+
Ask Fern can be configured to appear in multiple locations and pull content from various datasources. This allows you to provide AI-powered assistance wherever your users need it and ensure access to relevant information.
7+
8+
## Locations
9+
10+
The `location` field in your `ai-search` configuration determines where Ask Fern will be available to your users. You can specify one or more locations:
11+
12+
```yaml docs.yml
13+
ai-search:
14+
location:
15+
- docs
16+
- slack
17+
- discord
18+
```
19+
20+
### Available Locations
21+
22+
<ParamField path="docs" type="string">
23+
Enables Ask Fern on your documentation site. Users will see the AI search interface directly in your docs.
24+
</ParamField>
25+
26+
<ParamField path="slack" type="string">
27+
Enables Ask Fern in Slack. Learn more about the [Slack app integration](/ask-fern/features/slack-app).
28+
</ParamField>
29+
30+
<ParamField path="discord" type="string">
31+
Enables Ask Fern in Discord. This allows your community to get AI-powered answers in your Discord server.
32+
</ParamField>
33+
34+
## Datasources (coming soon)
35+
36+
The `datasources` field allows you to specify additional content sources that Ask Fern should index and search. This is useful when you want to include content from external websites or documentation that isn't part of your main docs.
37+
38+
```yaml docs.yml
39+
ai-search:
40+
datasources:
41+
- url: https://example.com/additional-docs
42+
title: Additional Documentation
43+
- url: https://blog.example.com
44+
title: Company Blog
45+
```
46+
47+
### Website Datasources
48+
49+
<ParamField path="url" type="string" required>
50+
The URL of the website to index. Ask Fern will crawl and index the content from this URL.
51+
</ParamField>
52+
53+
<ParamField path="title" type="string">
54+
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.
55+
</ParamField>
56+
57+
## Preview Environments
58+
59+
Setting `location: [docs]` enables Ask Fern on preview deployments generated with `fern generate --docs --preview`, allowing you to test the AI search functionality before publishing to production.
60+
61+
<Note>
62+
Preview environments don't interfere with your production Ask Fern deployment.
63+
</Note>
64+
65+
## Best Practices
66+
67+
<AccordionGroup>
68+
<Accordion title="Start with docs location">
69+
Begin by enabling Ask Fern on your documentation site (`location: [docs]`) to test and refine the experience before expanding to other channels like Slack or Discord.
70+
</Accordion>
71+
72+
<Accordion title="Use descriptive titles for datasources">
73+
Always provide a `title` for your datasources. This helps users understand the source of information when Ask Fern provides citations.
74+
</Accordion>
75+
76+
<Accordion title="Keep datasources relevant">
77+
Only include datasources that contain information relevant to your users' questions. Too many datasources can dilute the quality of search results.
78+
</Accordion>
79+
80+
<Accordion title="Test with previews">
81+
Use preview deployments to test your Ask Fern configuration, including locations and datasources, before deploying to production.
82+
</Accordion>
83+
</AccordionGroup>

0 commit comments

Comments
 (0)