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
{{ message }}
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: en/use/knowledge-base.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
# AstrBot Knowledge Base
3
2
4
3
> [!TIP]
@@ -14,8 +13,23 @@ Currently, AstrBot supports embedding vector services compatible with OpenAI API
14
13
15
14
Click on the provider card above to enter the configuration page and fill in the configuration.
16
15
16
+
> [!NOTE]
17
+
> **OpenAI Embedding API Base URL**
18
+
> - OpenAI Embedding automatically appends `/v1` at request time. For example, if you enter `https://api.example.com`, the actual request URL will be `https://api.example.com/v1`.
19
+
> - If your API Base URL already contains `/v1`, there's no need to add it again; the system handles this automatically.
20
+
>
21
+
> **Gemini Embedding API Base URL**
22
+
> - Use `https://generativelanguage.googleapis.com` without manually adding `/v1beta`.
23
+
17
24
After completing the configuration, click Save.
18
25
26
+
### Automatic Vector Dimension Detection
27
+
28
+
When creating an embedding model provider, AstrBot automatically detects the model's vector dimension. The system probes the dimension through actual API requests, so you don't need to fill it in manually.
29
+
30
+
> [!TIP]
31
+
> If automatic detection fails, please check that your API Key and API Base URL are correctly configured, and that your network is accessible.
32
+
19
33
## Configuring Reranker Model (Optional)
20
34
21
35
A reranker model can improve the precision of final retrieval results to some extent.
@@ -54,6 +68,6 @@ In the configuration file, you can specify different knowledge bases for differe
54
68
3. Click on BAAI:BGE-M3 (as of 2025-06-02, this model is free on this platform).
55
69
4. Find the API integration guide and apply for a Key.
56
70
5. Fill in the AstrBot OpenAI Embedding model provider configuration:
57
-
1. API Key is the PPIO API Key you just applied for
58
-
2. embedding api base: enter `https://api.ppinfra.com/v3/openai`
59
-
3. model: enter the model you selected, in this example `baai/bge-m3`.
71
+
1. API Key is the PPIO API Key you just applied for
72
+
2. embedding api base: enter `https://api.ppinfra.com/v3/openai`
73
+
3. model: enter the model you selected, in this example `baai/bge-m3`.
0 commit comments