mongodb-rag-core
Version:
Common elements used by MongoDB Chatbot Framework components.
14 lines • 670 B
TypeScript
import { Embedder } from "./Embedder";
import { Embeddings } from "@langchain/core/embeddings";
export type MakeLangChainEmbedderParams = {
/**
LangChain.js `Embeddings` instance.
You can configure things like caching and retry behavior in the `Embeddings` instance.
*/
langChainEmbeddings: Embeddings;
};
/**
Constructor for implementation of the {@link Embedder} using a LangChain.js [`Embeddings`](https://js.langchain.com/docs/modules/data_connection/text_embedding/) class.
*/
export declare const makeLangChainEmbedder: ({ langChainEmbeddings, }: MakeLangChainEmbedderParams) => Embedder;
//# sourceMappingURL=LangChainEmbedder.d.ts.map