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

Constructors

Methods

Constructors

Methods

Generated using TypeDoc