Optional
params: AsyncCallerParamsThe async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Generates fixed embeddings for a list of documents.
List of documents to generate embeddings for.
A promise that resolves with a list of fixed embeddings for each document.
Generates a fixed embedding for a query.
The query to generate an embedding for.
A promise that resolves with a fixed embedding for the query.
A class that provides fake embeddings by overriding the embedDocuments and embedQuery methods to return fixed values.