import { LLMChain } from "../../chains/llm_chain.js"; import { QueryConstructorChainOptions } from "../../chains/query_constructor/index.js"; import { Document } from "../../document.js"; import { BaseRetriever, BaseRetrieverInput } from "../../schema/retriever.js"; import { VectorStore } from "../../vectorstores/base.js"; import { FunctionalTranslator } from "./functional.js"; import { BaseTranslator, BasicTranslator } from "./base.js"; import { CallbackManagerForRetrieverRun } from "../../callbacks/manager.js"; export { BaseTranslator, BasicTranslator, FunctionalTranslator }; export interface SelfQueryRetrieverArgs extends BaseRetrieverInput { vectorStore: VectorStore; structuredQueryTranslator: BaseTranslator; llmChain: LLMChain; verbose?: boolean; searchParams?: { k?: number; filter?: VectorStore["FilterType"]; }; } export declare class SelfQueryRetriever extends BaseRetriever implements SelfQueryRetrieverArgs { get lc_namespace(): string[]; vectorStore: VectorStore; llmChain: LLMChain; verbose?: boolean; structuredQueryTranslator: BaseTranslator; searchParams?: { k?: number; filter?: VectorStore["FilterType"]; }; constructor(options: SelfQueryRetrieverArgs); _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise>[]>; static fromLLM(options: QueryConstructorChainOptions & Omit): SelfQueryRetriever; }