Query Collection
Execute a natural language query against a collection using DeepQuery.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
- Idempotency-Key: UUID for request deduplication (optional)
Parameters:
- query: The natural language query
- include_documents: Whether to include relevant documents in the response
- inference: Enable AI-powered response generation
- stream: Enable real-time streaming
- top_k: Number of results to return
Path parameters
collection_name
Name of the collection to query
Headers
Authorization
Captain API key for authentication
X-Organization-ID
Organization UUID
Idempotency-Key
UUID for request deduplication
Request
This endpoint expects an object.
query
include_documents
inference
Enable LLM-generated answers based on the relevant sections retrieved
stream
top_k
Response
Successful Response
status
response
relevant_documents
query
collection_name