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: docs/content/Deploying/DocsGPT-Settings.mdx
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ Here are some of the most fundamental settings you'll likely want to configure:
45
45
-`google`: Use Google's Vertex AI or Gemini models.
46
46
-`anthropic`: Use Anthropic's Claude models.
47
47
-`groq`: Use Groq's models.
48
+
-`qianfan`: Use Baidu Qianfan models.
48
49
-`huggingface`: Use HuggingFace Inference API.
49
50
-`azure_openai`: Use Azure OpenAI Service.
50
51
-`openai` (when using local inference engines like Ollama, Llama.cpp, TGI, etc.): This signals DocsGPT to use an OpenAI-compatible API format, even if the actual LLM is running locally.
@@ -54,8 +55,26 @@ Here are some of the most fundamental settings you'll likely want to configure:
54
55
-**Examples:**
55
56
- For `LLM_PROVIDER=openai`: `gpt-4o`
56
57
- For `LLM_PROVIDER=google`: `gemini-2.0-flash`
58
+
- For `LLM_PROVIDER=qianfan`: `ernie-5.0`
57
59
- For local models (e.g., Ollama): `llama3.2:1b` (or any model name available in your setup).
58
60
61
+
### Example for Cloud API Provider (Baidu Qianfan)
62
+
63
+
To use Baidu Qianfan's `ernie-5.0` model, configure your `.env` file like this:
64
+
65
+
```env
66
+
LLM_PROVIDER=qianfan
67
+
QIANFAN_API_KEY=YOUR_QIANFAN_API_KEY
68
+
LLM_NAME=ernie-5.0
69
+
```
70
+
71
+
You can also reuse the generic `API_KEY` variable with `LLM_PROVIDER=qianfan`, but `QIANFAN_API_KEY` is clearer when you configure multiple providers in the same deployment.
72
+
73
+
The first Qianfan integration is intentionally conservative:
74
+
75
+
- Text chat is supported.
76
+
- Attachments, tool calling, and structured output are left disabled until they are verified end-to-end against the Qianfan API.
77
+
59
78
-**`EMBEDDINGS_NAME`**: This setting defines which embedding model DocsGPT will use to generate vector embeddings for your documents. Embeddings are numerical representations of text that allow DocsGPT to understand the semantic meaning of your documents for efficient search and retrieval.
60
79
61
80
-**Default value:**`huggingface_sentence-transformers/all-mpnet-base-v2` (a good general-purpose embedding model).
0 commit comments