An abstract class that provides methods for embedding documents and queries using LangChain.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Generates embeddings for an array of texts.
An array of strings to generate embeddings for.
A Promise that resolves to an array of embeddings.
Generates an embedding for a single text.
A string to generate an embedding for.
A Promise that resolves to an array of numbers representing the embedding.
Generated using TypeDoc
An abstract class that provides methods for embedding documents and queries using LangChain.