25.3M Downloads Updated 1 year ago
A high-performing open embedding model with a large token context window.
embedding
Models
View all →Readme
Note: this model requires Ollama 0.1.26 or later. Download it here. It can only be used to generate embeddings.
nomic-embed-text
is a large context length text encoder that surpasses OpenAI text-embedding-ada-002
and text-embedding-3-small
performance on short and long context tasks.
Usage
This model is an embedding model, meaning it can only be used to generate embeddings.
REST API
curl http://localhost:11434/api/embeddings -d '{
"model": "nomic-embed-text",
"prompt": "The sky is blue because of Rayleigh scattering"
}'
Python library
ollama.embeddings(model='nomic-embed-text', prompt='The sky is blue because of rayleigh scattering')
Javascript library
ollama.embeddings({ model: 'nomic-embed-text', prompt: 'The sky is blue because of rayleigh scattering' })