agsamantha/node_modules/@langchain/community/dist/retrievers/vectara_summary.d.ts
2024-10-02 15:15:21 -05:00

20 lines
874 B
TypeScript

import { Document } from "@langchain/core/documents";
import { BaseRetriever, type BaseRetrieverInput } from "@langchain/core/retrievers";
import { CallbackManagerForRetrieverRun } from "@langchain/core/callbacks/manager";
import { VectaraStore, type VectaraSummary, type VectaraFilter } from "../vectorstores/vectara.js";
export interface VectaraRetrieverInput extends BaseRetrieverInput {
vectara: VectaraStore;
filter?: VectaraFilter;
topK?: number;
summaryConfig?: VectaraSummary;
}
export declare class VectaraSummaryRetriever extends BaseRetriever {
static lc_name(): string;
lc_namespace: string[];
private filter;
private vectara;
private topK;
private summaryConfig;
constructor(fields: VectaraRetrieverInput);
_getRelevantDocuments(query: string, _callbacks?: CallbackManagerForRetrieverRun): Promise<Document[]>;
}