Optional
fields: Partial<NomicEmbeddingsParams>The maximum number of documents to embed in a single request.
{400}
The name of the model to use.
{"nomic-embed-text-v1"}
Whether to strip new lines from the input text. This is recommended, but may not be suitable for all use cases.
{true}
The task your embeddings should be specialized for: search_query, search_document, clustering, classification.
{"search_document"}
Optional
dimensionalityThe output size of the embedding model. Applicable only to models that support variable dimensionality and defaults to the models largest embedding size.
Method to generate embeddings for an array of documents. Splits the documents into batches and makes requests to the Nomic API to generate embeddings.
Array of documents to generate embeddings for.
Promise that resolves to a 2D array of embeddings for each document.
Generated using TypeDoc
Class for generating embeddings using the Nomic API.