Example

const retriever = new MultiQueryRetriever.fromLLM({
llm: new ChatAnthropic({}),
retriever: new MemoryVectorStore().asRetriever(),
verbose: true,
});
const retrievedDocs = await retriever.getRelevantDocuments(
"What are mitochondria made of?",
);

Hierarchy (view full)

Constructors

Properties

documentCompressor: undefined | BaseDocumentCompressor
documentCompressorFilteringFn?: ((docs) => MultiDocs)

Type declaration

Methods

Generated using TypeDoc