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

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

Type Parameters

  • T extends VectorStore

Hierarchy

  • BaseRetrieverInput
    • SelfQueryRetrieverArgs

Implemented by

Properties

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