type, how to match it with query_by, and how much retrieval work to do with mode.
Endpoint references
Decision flow
Parameters that matter
These parameters shape most queries. Query lists every request field and its rules.Recommended configurations
Typical patterns
Each pattern is a complete request body. Query shows the same patterns as Python SDK, TypeScript SDK, and cURL calls.Personalized answer with memories
Personalized answer with memories
Search the shared knowledge collection and the collection the user’s memories were ingested into. Both collections must already exist.
Search multiple collections
Search multiple collections
Search several collections and return one ranked result set. Use a list for equal weighting, or an object to give one collection more influence.
Filtered query for a specific slice
Filtered query for a specific slice
Top-level
metadata_filters keys filter fields declared in database_metadata_schema. Free-form fields go under additional_metadata. All keys combine with AND. See Metadata Filters for operators.Exact phrase lookup
Exact phrase lookup
Use
query_by: "text" when literal wording matters: legal clauses, SKUs, error codes, IDs, or compliance references.Response summary
By default,data.llm_prompt contains the question and retrieved context formatted for your model. Pass this string to the model to generate an answer. See Query for the model call and response formats.
The response also includes ranked data.chunks[] with source IDs and titles, plus graph context and related chunks. Preserve chunk order when you format results yourself.
Related
- Query: every request and response field
- Query guide: retrieval modes, ranking, and tuning
- Metadata Filters: filter with schema-backed and free-form metadata
- Query: graph context and forceful relations
