For the complete documentation index, see llms.txt. This page is also available as Markdown.

知識庫(舊版)

取得 AI 助理的知識庫檔案列表

GET /api/v1/chatbots/{id}/knowledge-bases-files/

參數

參數名稱
必填
類型
說明

id

string

largeLanguageModel

string

page

integer

A page number within the paginated result set.

pageSize

integer

Number of results to return per page.

query

string

replyMode

string

程式碼範例

# 呼叫 API 示例 (Shell)
curl -X GET "https://api.maiagent.ai/api/v1/chatbots/550e8400-e29b-41d4-a716-446655440000/knowledge-bases-files/?largeLanguageModel=550e8400-e29b-41d4-a716-446655440000&page=1&pageSize=1&query=example&replyMode=example" \
  -H "Authorization: Api-Key YOUR_API_KEY"

# 請確認在執行前替換 YOUR_API_KEY 並核對請求資料。

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得 AI 助理的知識庫 FAQ 列表

GET /api/v1/chatbots/{id}/knowledge-bases-faqs/

參數

參數名稱
必填
類型
說明

id

string

largeLanguageModel

string

page

integer

A page number within the paginated result set.

pageSize

integer

Number of results to return per page.

query

string

replyMode

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得 AI 助理的所有檔案的文本節點

GET /api/v1/chatbot-text-nodes/

參數

參數名稱
必填
類型
說明

chatbotFile

string

【將棄用】Chatbot 檔案 ID(請使用 knowledge_base_file)

cursor

string

The pagination cursor value.

knowledgeBaseFile

string

知識庫檔案 ID(建議使用)

pageSize

integer

Number of results to return per page.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得 AI 助理的特定檔案的文本節點

GET /api/v1/chatbot-text-nodes/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this ChatbotTextNode.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


搜尋測試

POST /api/v1/chatbots/{id}/search/

參數

參數名稱
必填
類型
說明

id

string

largeLanguageModel

string

page

integer

A page number within the paginated result set.

pageSize

integer

Number of results to return per page.

query

string

replyMode

string

請求內容

請求參數

欄位
類型
必填
說明

searchMode

object

Search mode: hybrid (default, vector + BM25), semantic (vector only), keyword (BM25 only) hybrid: Hybrid (vector + BM25) ; semantic: Semantic (vector only) ; keyword: Keyword (BM25 only);

queryMetadata

object

查詢元數據,用於控制搜尋範圍和方式

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


列出檔案類型支援的解析器

GET /api/v1/parsers/supported-file-types/

參數

參數名稱
必填
類型
說明

knowledgeBaseId

string

Knowledge base ID. When provided and the knowledge base does not support multimodal embeddings, image file types will be filtered out.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


Last updated

Was this helpful?