TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/langchain-ai/langchain/llms.txt
Use this file to discover all available pages before exploring further.
NomicEmbeddings class provides integration with Nomic’s embedding models, supporting both text and image embeddings.
Installation
Setup
Set your Nomic API key:Usage
Basic usage
Embed single text
Embed multiple texts
Configuration
Supported models
Text models:nomic-embed-text-v1.5- Latest text embedding model (768 dimensions)nomic-embed-text-v1- Previous generation text model
nomic-embed-vision-v1.5- Latest vision embedding model
Inference modes
Nomic supports three inference modes:Remote inference (default)
Local inference
Run embeddings locally using Embed4All:Dynamic inference
Automatically choose between local and remote:Matryoshka dimensions
Reduce embedding dimensions for faster search:Image embeddings
Device selection (local mode)
For local inference on Linux/Windows:Parameters
Name of the Nomic text embedding model to use.
Nomic API key. Automatically inferred from
NOMIC_API_KEY environment variable if not provided.Embedding dimension for Matryoshka-capable models. Defaults to full-size (768).
How to generate embeddings. Options:
remote, local, or dynamic.Device for local embeddings. Options:
cpu, gpu, nvidia, amd, or specific device name.Vision model to use for image embeddings.