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": [ {} ] } }
对知识库进行语义检索,返回相关文档片段。
Documentation IndexFetch the complete documentation index at: https://docs.langbot.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
Use this file to discover all available pages before exploring further.
检索查询文本
检索参数(如 top_k 等)
Show child attributes
成功
0