ApiKnowledge
Retrieve context
Return the top matching chunks for a query (retrieval without generation).
Return the top matching chunks for a query (retrieval without generation).
Authorization
TokenAuth Authorization<token>
Project API key as Token lb-sk_...
In: header
Path Parameters
name*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/knowledge/string/context" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{ "chunks": [ { "text": "string", "score": 0, "document_id": "string", "filename": "string" } ]}