Skip to main content
Attach metadata to documents at index time, then constrain queries to the documents whose metadata matches a filter passed as QueryOptions.filter. Filtering is evaluated on the locally loaded index, so call load_index() (or open a session) before querying with a filter.

Operators

Compose multiple conditions with $and / $or (nestable). A single condition can be passed on its own without a wrapper.

On a loaded index

Inside a session

A session query takes the same filter syntax, evaluated in-memory against the local session index. The example below indexes a call transcript and applies a range of operators.

Hybrid search

Blend semantic and keyword scoring.

Sessions

Filter against a live local index.