Retrieve relevant chunks.
The optional request.filters payload accepts equality checks (which also match scalars inside JSON arrays)
plus the logical operators $and, $or, $nor, and $not. Field-level predicates include $eq, $ne,
$in, $nin, $exists, $type, $regex, $contains, and the comparison operators $gt, $gte, $lt,
and $lte. Comparison clauses evaluate typed metadata (number, decimal, datetime, or date) and
raise detailed validation errors when operands cannot be coerced. Regex filters allow the optional i flag
for case-insensitive matching, while $contains performs substring checks (case-insensitive by default,
configurable via case_sensitive). Filters can be nested freely, for example:
{
"$and": [
{"category": "policy"},
{"$or": [{"region": "emea"}, {"priority": {"$in": ["p0", "p1"]}}]}
]
}
Returns a list of ChunkResult objects ordered by relevance.
Base retrieve request model
Natural-language query used to retrieve relevant chunks or documents.
1Base64-encoded image to use as query for Morphik multimodal retrieval. Requires use_colpali=True. Mutually exclusive with 'query'.
Metadata filters supporting logical operators ($and/$or/$not/$nor) and field predicates ($eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$exists/$type/$regex/$contains).
Maximum number of chunks or documents to return.
Minimum similarity score a result must meet before it is returned.
When provided, overrides the workspace reranking configuration for this request.
When provided, uses Morphik's finetuned ColPali style embeddings (recommended to be True for high quality retrieval).
How to return image chunks: base64 data URI (default) or a presigned URL
base64, url Number of additional chunks/pages to retrieve before and after matched chunks (ColPali only)
x >= 0Name of the graph to use for knowledge graph-enhanced retrieval
Number of relationship hops to traverse in the graph
1 <= x <= 3Whether to include relationship paths in the response
Optional folder scope for the operation. Accepts a single folder name or a list of folder names.
Optional end-user scope for the operation
Successful Response