A class that provides synthetic embeddings by overriding the embedDocuments and embedQuery methods to generate embeddings based on the input documents. The embeddings are generated by converting each document into chunks, calculating a numerical value for each chunk, and returning an array of these values as the embedding.
class SyntheticEmbeddingsThe async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
An abstract method that takes an array of documents as input and returns a promise that resolves to an array of vectors for each document.
An abstract method that takes a single document as input and returns a promise that resolves to a vector for the query document.