LangBot Docs
Knowledge Bases

Retrieve from a knowledge base

Perform semantic retrieval against a knowledge base and return relevant document chunks.

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

Perform semantic retrieval against a knowledge base and return relevant document chunks.

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": [      {}    ]  }}