繁體中文
cURL
curl --request GET \ --url https://app.pathors.com/knowledgebases/{knowledgebaseId}/query \ --header 'x-api-key: <x-api-key>'
{ "id": "<string>", "content": "<string>", "contentLength": 123, "isEnabled": true }
從指定知識庫中搜尋和獲取相關文本片段
https://api.pathors.com
GET /knowledgebases/{knowledgebaseId}/query
curl -X GET "https://api.pathors.com/knowledgebases/kb_abc123/query?q=搜尋關鍵詞&topK=5&scoreThreshold=0.3" \ --header "x-api-key: <your-api-key>"
[ { "id": "chunk_abc123", "content": "產品功能包括即時分析...", "contentLength": 82, "isEnabled": true } ]