langchain.js
    Preparing search index...

    Interface FileSearchComparisonFilter

    A filter used to compare a specified attribute key to a given value.

    interface FileSearchComparisonFilter {
        key: string;
        type: FileSearchComparisonType;
        value: string | number | boolean | (string | number)[];
    }
    Index

    Properties

    Properties

    key: string

    The attribute key to compare against.

    The comparison operator to use.

    • eq: equals
    • ne: not equal
    • gt: greater than
    • gte: greater than or equal
    • lt: less than
    • lte: less than or equal
    value: string | number | boolean | (string | number)[]

    The value to compare against the attribute key. Supports string, number, boolean, or array of strings/numbers.