POST /query
Run a full RAG query — retrieval, reranking, generation, and faithfulness check.
POST /ingest
Ingest a file upload or raw text via multipart/form-data.
POST /ingest/file
Upload and ingest a file (PDF, DOCX, TXT, MD, CSV). Max 50 MB.
POST /ingest/text
Ingest raw text content directly.
GET /chunks/{document_id}
Inspect all chunks for a document from the database.
GET /documents/{document_id}/download
Generate a presigned S3 URL and redirect to the document.
GET /index/stats
Check how many items are in the Qdrant and BM25 indexes.
GET /vector_stores
List all vector stores.
POST /vector_stores
Create a new vector store.
GET /vector_stores/{vector_store_id}
Retrieve a single vector store by ID.
DEL /vector_stores/{vector_store_id}
Delete a vector store and all its files.
POST /vector_stores/{vector_store_id}/search
Search inside a vector store.
GET /vector_stores/{vector_store_id}/files
List files in a vector store.
POST /vector_stores/{vector_store_id}/files
Attach a file to a vector store.
POST /vector_stores/{vector_store_id}/file_batches
Create a file batch for a vector store.
GET /vector_stores/{vector_store_id}/file_batches/{batch_id}
Inspect a file batch.
GET /vector_stores/{vector_store_id}/file_batches/{batch_id}/files
List the files included in a batch.
POST /vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel
Cancel a file batch.
GET /files
List uploaded files.
POST /files
Upload a file with a purpose.
GET /files/{file_id}
Retrieve a file object.
GET /files/{file_id}/content
Download file contents.
DELETE /files/{file_id}
Delete a file.
GET /health
Health check endpoint.