Search indexed sources with keyword or semantic search and receive ranked chunks (text, page, bounding boxes).
UseDocumentation Index
Fetch the complete documentation index at: https://docs.voltai.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /retrieve/ to run keyword (full-text) or semantic (vector) search over your organization’s indexed documents and return up to topk chunks. Results include the chunk text (llm_context), source filename, page reference, layout bbox, relevance score, and chunk_id.
Send your API key in the X-API-KEY header. Base URL is typically https://api-prod.voltai.ai/source/api.
retrieval permission on your API key when the key uses granular scopes (allowed_permissions in the admin). Keys with empty allowed_permissions keep full access (including retrieval). Keys scoped only to sources. must also include retrieval to call this route.
keyword (required) — Search string. Use document terms for keyword mode; short phrases or questions work well for semantic mode.search_mode (required) — keyword or semantic.
keyword — Elasticsearch full-text search over indexed chunk text.semantic — Vector similarity search (Milvus) over embeddings.topk (optional) — Maximum chunks to return; default 10, max 100.chunks — Array of objects, each with:
filename — Source name.page — Page number or list of pages, depending on how the chunk was split.llm_context — Text content of the chunk.bbox — Bounding box(es) for the region (format depends on source type).score — Backend relevance score (may be null in edge cases).chunk_id — Stable chunk identifier in the org’s chunk store.keyword after trimming, or invalid search_mode).retrieval scope.API_KEY to your key (same as for other Source API calls), then:
API key from organization settings. Must include the retrieval scope when the key uses granular permissions.
Search text. For keyword mode, use terms that appear in the documents; for semantic mode, short phrases or questions work well.
keyword — full-text search on indexed text. semantic — dense vector similarity search.
keyword, semantic Maximum number of texts to return.
1 <= x <= 100If set, restricts results to sources linked to this topic (including its subtree). Omit to search across all sources the key may access.
Ranked texts (may be empty if nothing matches).