RAG Query
Query a specific pipeline using vector similarity search. This endpoint requires a pipeline-specific API key.POST /rag/query
Headers
Bearer token containing your pipeline API key (e.g.,
Bearer rag_...)Must be
application/jsonBody
The search query you want to find context for.
The maximum number of results to return. Defaults to the pipeline’s configured
retrievalTopK setting. (Max: 20)Response
Error Codes
| HTTP Status | Code | Description |
|---|---|---|
401 | MISSING_API_KEY | No Authorization header provided. |
401 | INVALID_API_KEY | The API key is invalid or has been revoked. |
404 | PIPELINE_NOT_FOUND | The pipeline this key belongs to no longer exists. |
400 | MISSING_QUERY | The query field was missing from the body. |
