cURL
curl --request GET \ --url https://api.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
sk_
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 } ]