Search over chunks using dense vector, BM25 full-text, or hybrid retrieval.
Combines search with path-based authorization and optional metadata filters. Uses Qdrant for retrieval and hydrates the matched chunks from Postgres.
Documentation Index
Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request body for chunk search (dense vector, full-text BM25, or hybrid).
Search query text
1Search type: dense_only (semantic) or full_text (BM25 keyword), or hybrid (weighted dense+BM25)
dense_only, full_text, hybrid Hybrid weighting preset: hybrid, dense, or sparse
hybrid, dense, sparse Optional explicit weight for the dense branch. Must be provided together with sparse_weight and overrides hybrid_profile.
Optional explicit weight for the sparse branch. Must be provided together with dense_weight and overrides hybrid_profile.
Path part IDs to search within (non-CHUNK types). Defaults to tenant's /shared.
Filter by tag IDs (AND logic — chunks must have ALL specified tags)
Filter by chunk types (TEXT, TABLE, IMAGE, HTML, UNKNOWN). Only chunks matching one of the listed types are returned.
1Type of chunk content.
TEXT, TABLE, IMAGE, HTML, UNKNOWN Only chunks ingested after this timestamp
Only return chunks from the active document version
Number of results (1-50)
1 <= x <= 50Minimum similarity score
Include ancestor document_id and document_version_id in each result
Successful Response
Chunk ID
PathPart ID
ChunkContent ID
Chunk text content
Type of chunk content
TEXT, TABLE, IMAGE, HTML, UNKNOWN Chunk metadata
Parent PathPart ID
Full materialized path from root
Whether this chunk is system-managed
Tenant ID
Creation timestamp
Last update timestamp
Search ranking score returned by Qdrant
Number of tokens in chunk content
Previous sibling PathPart ID
Next sibling PathPart ID
Presigned URLs to download the chunk's visual assets (6-hour validity)
Ancestor document info (populated when with_document=true)
Ancestor document version info (populated when with_document=true)