Class for generating embeddings using the Nomic API.
class NomicEmbeddingsThe maximum number of documents to embed in a single request.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
The output size of the embedding model. Applicable only to models that support variable dimensionality and defaults to the models largest embedding size.
The name of the model to use.
The name of the model to use.
Alias for model
Whether to strip new lines from the input text. This is recommended, but may not be suitable for all use cases.
The task your embeddings should be specialized for: search_query, search_document, clustering, classification.
Method to generate embeddings for an array of documents. Splits the documents into batches and makes requests to the Nomic API to generate embeddings.
Method to generate an embedding for a single document. Calls the embeddingWithRetry method with the document as the input.