Interface for the arguments required to create a SelfQueryRetriever instance. It extends the BaseRetrieverInput interface.

interface SelfQueryRetrieverArgs<T> {
    queryConstructor: RunnableInterface<{
        query: string;
    }, StructuredQuery>;
    structuredQueryTranslator: BaseTranslator<T>;
    vectorStore: T;
    searchParams?: {
        filter?: T["FilterType"];
        forceDefaultFilter?: boolean;
        k?: number;
        mergeFiltersOperator?: "or" | "and" | "replace";
    };
    useOriginalQuery?: boolean;
    verbose?: boolean;
}

Type Parameters

Hierarchy (view full)

Implemented by

Properties

queryConstructor: RunnableInterface<{
    query: string;
}, StructuredQuery>
structuredQueryTranslator: BaseTranslator<T>
vectorStore: T
searchParams?: {
    filter?: T["FilterType"];
    forceDefaultFilter?: boolean;
    k?: number;
    mergeFiltersOperator?: "or" | "and" | "replace";
}
useOriginalQuery?: boolean
verbose?: boolean