LangBot Docs
知识库

检索知识库

对知识库进行语义检索,返回相关文档片段。

POST
/api/v1/knowledge/bases/{kb_uuid}/retrieve

对知识库进行语义检索,返回相关文档片段。

Authorization

X-API-Key<token>

In: header

Path Parameters

kb_uuid*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/knowledge/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/retrieve" \  -H "Content-Type: application/json" \  -d '{    "query": "string"  }'
{  "code": 0,  "data": {    "results": [      {}    ]  }}