StaticBuildConvert shared index filter options into an array of filter conditions. Providers should map these conditions to their native filter syntax (e.g., Pinecone metadata filters, Weaviate where clauses, etc.).
The high-level filter options from the search request
An array of conditions; empty if no filters are specified
StaticFromConvenience method that converts SharedIndexFilterOptions directly to a native filter object in one step.
The high-level filter options
A native filter object, or undefined if no filters specified
StaticToConvert filter conditions into a simple key-value filter object
compatible with the existing QueryParamsBase.filter field.
This produces a "Pinecone-style" filter using $in and $eq operators.
Providers with different filter syntax should override or adapt.
The array of filter conditions to convert
A plain object suitable for QueryParamsBase.filter
Utility class for converting
SharedIndexFilterOptionsinto a flat array ofMetadataFilterConditionobjects that vector DB providers can interpret.