Overview
The RAG API lets a workspace ingest documents, chunk and embed them, and query them with natural-language questions that return a generated answer plus the source passages it was grounded in.Upload documents
POST files to
/api/v1/rag/upload. Each file is text-extracted, chunked, embedded, and indexed per-workspace.Query
POST a natural-language question to
/api/v1/rag/query. The engine retrieves the most relevant chunks and returns a generated answer with cited sources.Base URL
Quotas
Each workspace has a monthly query quota (rag_workspaces.monthly_quota, defaults to 1,000). Queries increment usage by 1; uploads are not quota-limited but are capped at 100 MB per file.
Resources
Upload
Ingest documents (PDF, DOCX, TXT, MD, CSV, JSON) into the workspace’s RAG index.
Query
Ask questions and get grounded answers with source citations.