cURL
curl --request POST \ --url http://localhost:5300/api/v1/knowledge/bases/{kb_uuid}/retrieve \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "query": "<string>", "retrieval_settings": { "top_k": 123 } } '
{ "code": 0, "data": { "results": [ {} ] } }
对知识库进行语义检索,返回相关文档片段。
检索查询文本
检索参数(如 top_k 等)
Show child attributes
成功
0