知識庫(舊版)

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

GET /api/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.

程式碼範例

# 呼叫 API 示例 (Shell)
curl -X GET "https://api.maiagent.ai/api/chatbot-text-nodes/?chatbotFile=example&cursor=example&knowledgeBaseFile=example&pageSize=1" \
  -H "Authorization: Api-Key YOUR_API_KEY"

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

回應內容

狀態碼: 200

回應結構範例

{
  "next"?: string (uri) // 非必填
  "previous"?: string (uri) // 非必填
  "results": [
    {
      "id": string (uuid)
      "charactersCount": integer
      "hitsCount": integer
      "text": string
      "updatedAt": string (timestamp)
      "filename": string
      "chatbotFile": string (uuid)
      "knowledgeBaseFile": string (uuid) // 與 get_chatbot_file 相同,提供向後兼容
      "pageNumber": integer
    }
  ]
}

回應範例值


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

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

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this ChatbotTextNode.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


搜尋測試

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

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Chatbot.

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

請求內容

請求參數

欄位
類型
必填
說明

queryMetadata

object

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

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


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

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

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


Last updated

Was this helpful?