Retrieval
Retrieval
Search your knowledge base and return the most relevant chunks for a query, with no LLM generation, for use as context by LLMs and agents. The mode parameter selects the retrieval mode.
The same retrieval is available as a tool on Kapa's hosted MCP servers.
post/query/v1/projects/{project_id}/retrieval/
Request
- Base URL: https://api.kapa.ai
- URL: https://api.kapa.ai/query/v1/projects/{project_id}/retrieval/
- Auth: one of:
- API key in cookie sessionid
- HTTP bearer
- API key in header X-API-KEY
Path parameters
project_idstring required
The ID of the project.
Request body
Response
Changes
No recorded changes to this operation across all 1 revision of this API.