The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Embed a list of documents
Array of strings to embed
Promise of array of embedding vectors
Embed a single query
String to embed
Promise of embedding vector
ProtectedgetHelper method to get embeddings for a list of texts
Array of strings to embed
Promise of array of embedding vectors
BaseEmbedding is a base class for embeddings that communicate with a remote API. It extends the LangChain Embeddings class and provides methods for embedding documents and queries.