Retrieve Chunks
Changed onRetrieve 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.
Request
- Base URLhttps://api.morphik.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.morphik.ai/retrieve/chunks
- Authnone declared
Headers
Request body
Response
Successful Response
Changes
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
headerrequest parameterauthorizationlist-of-types was widened by adding typesnull - info
for the
headerrequest parameterauthorization, the type was generalized fromstringto no type
- warning
- breaking
removed
subschema #1from therequest propertyanyOflist - info
added the new optional request property
- info
added to the
request propertyanyOflist
- breaking