Skip to main content

RAG Query

Query a specific pipeline using vector similarity search. This endpoint requires a pipeline-specific API key. POST /rag/query

Headers

string
required
Bearer token containing your pipeline API key (e.g., Bearer rag_...)
string
required
Must be application/json

Body

string
required
The search query you want to find context for.
number
The maximum number of results to return. Defaults to the pipeline’s configured retrievalTopK setting. (Max: 20)

Response

Error Codes