Member Junction
    Preparing search index...

    Utility class for converting SharedIndexFilterOptions into a flat array of MetadataFilterCondition objects that vector DB providers can interpret.

    Index

    Constructors

    Methods

    • Convenience method that converts SharedIndexFilterOptions directly to a native filter object in one step.

      Parameters

      Returns Record<string, unknown>

      A native filter object, or undefined if no filters specified

    • Convert 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.

      Parameters

      Returns Record<string, unknown>

      A plain object suitable for QueryParamsBase.filter