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": "如何使用 LangBot 创建机器人?" } '
{ "code": 0, "msg": "ok", "data": { "results": [ {} ] } }
Search for relevant knowledge in the knowledge base
API Key authentication using X-API-Key header. Example: X-API-Key: lbk_your_api_key_here
X-API-Key: lbk_your_api_key_here
Knowledge Base UUID
Query text
Retrieval successful
0
"ok"
Show child attributes