You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/ask-fern/pages/configuration/locations-and-datasources.mdx
+3-25Lines changed: 3 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,7 @@ title: Locations and Datasources
3
3
subtitle: Configure where Ask Fern is available and what content it can access.
4
4
---
5
5
6
-
<Markdownsrc="/snippets/pro-plan.mdx" />
7
-
8
-
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 the AI has access to all relevant information.
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.
9
7
10
8
## Locations
11
9
@@ -33,7 +31,7 @@ ai-search:
33
31
Enables Ask Fern in Discord. This allows your community to get AI-powered answers in your Discord server.
34
32
</ParamField>
35
33
36
-
## Datasources
34
+
## Datasources (coming soon)
37
35
38
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.
39
37
@@ -56,29 +54,9 @@ ai-search:
56
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.
57
55
</ParamField>
58
56
59
-
## Complete Example
60
-
61
-
Here's a complete example showing how to configure both locations and datasources:
62
-
63
-
```yaml docs.yml
64
-
ai-search:
65
-
system-prompt: |
66
-
You are a helpful AI assistant for our documentation.
67
-
Provide clear, accurate answers based on the available documentation.
68
-
model: claude-3.7
69
-
location:
70
-
- docs
71
-
- slack
72
-
datasources:
73
-
- url: https://help.example.com
74
-
title: Help Center
75
-
- url: https://blog.example.com
76
-
title: Engineering Blog
77
-
```
78
-
79
57
## Preview Environments
80
58
81
-
When using `fern generate --preview`, the `location` configuration determines whether Ask Fern will be enabled in your preview environment. If you specify `location: [docs]`, Ask Fern will be available in your preview deployments, allowing you to test the AI search functionality before publishing to production.
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.
82
60
83
61
<Note>
84
62
Preview environments use separate namespaces to ensure that test data doesn't interfere with your production Ask Fern instance.
0 commit comments