A high-performing open embedding model with a large token context window.

embedding

7.6M 10 months ago

Readme

nomic_logo

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' })

References

HuggingFace

Blog Post