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: self-host/customize-deployment/environment-variables.mdx
+57-20Lines changed: 57 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,34 +192,42 @@ These variables allow you to configure [S3 Object Storage](/self-host/customize-
192
192
193
193
These variables enable you to configure the [AI Analyst functionality](/guides/ai-agents). Note that you will need an **Enterprise Licence Key** for this functionality.
|`AI_COPILOT_ENABLED`| Enables/Disables AI Analyst functionality ||`false`|
198
-
|`ASK_AI_BUTTON_ENABLED`| Enables the "Ask AI" button in the interface for direct access to AI agents, when disabled agents can be acessed from `/ai-agents` route ||`false`|
199
-
|`AI_EMBEDDING_ENABLED`| Enables AI embedding functionality for verified answers similarity matching ||`false`|
200
-
|`AI_DEFAULT_PROVIDER`| Default AI provider to use (`openai`, `azure`, `anthropic`, `openrouter`) ||`openai`|
201
-
|`AI_DEFAULT_EMBEDDING_PROVIDER`| Default AI provider for embeddings (currently only `openai` supported). Falls back to `AI_DEFAULT_PROVIDER` if not set ||`openai`|
202
-
|`AI_COPILOT_DEBUG_LOGGING_ENABLED`| Enables debug logging for AI Copilot ||`false`|
203
-
|`AI_COPILOT_TELEMETRY_ENABLED`| Enables telemetry for AI Copilot ||`false`|
204
-
|`AI_COPILOT_REQUIRES_FEATURE_FLAG`| Requires a feature flag to use AI Copilot ||`false`|
|`AI_COPILOT_ENABLED`| Enables/Disables AI Analyst functionality ||`false`|
198
+
|`ASK_AI_BUTTON_ENABLED`| Enables the "Ask AI" button in the interface for direct access to AI agents, when disabled agents can be acessed from `/ai-agents` route ||`false`|
199
+
|`AI_EMBEDDING_ENABLED`| Enables AI embedding functionality for verified answers similarity matching ||`false`|
200
+
|`AI_DEFAULT_PROVIDER`| Default AI provider to use (`openai`, `azure`, `anthropic`, `openrouter`, `bedrock`) ||`openai`|
201
+
|`AI_DEFAULT_EMBEDDING_PROVIDER`| Default AI provider for embeddings (`openai`, `bedrock`) ||`openai`|
202
+
|`AI_COPILOT_DEBUG_LOGGING_ENABLED`| Enables debug logging for AI Copilot ||`false`|
203
+
|`AI_COPILOT_TELEMETRY_ENABLED`| Enables telemetry for AI Copilot ||`false`|
204
+
|`AI_COPILOT_REQUIRES_FEATURE_FLAG`| Requires a feature flag to use AI Copilot ||`false`|
205
+
|`AI_COPILOT_MAX_QUERY_LIMIT`| Maximum number of rows returned in AI-generated queries ||`500`|
206
+
|`AI_VERIFIED_ANSWER_SIMILARITY_THRESHOLD`| Similarity threshold (0-1) for verified answer matching ||`0.6`|
205
207
206
208
The AI Analyst supports multiple providers for flexibility. Choose one of the provider configurations below based on your preferred AI service. **OpenAI integration is the recommended option as it is the most tested and stable implementation.**
207
209
210
+
#### Minimum Required Setup
211
+
212
+
To enable AI Analyst, set `AI_COPILOT_ENABLED=true` and provide an API key for `AI_DEFAULT_PROVIDER` (e.g., `OPENAI_API_KEY` for OpenAI, `ANTHROPIC_API_KEY` for Anthropic).
0 commit comments