talira

nomic-embed-text-v1.5

Resizable production embeddings with Matryoshka Representation Learning

open sourceApache-2.0self-hostablefree

nomic-embed-text-v1.5 is Nomic's English text embedding model, trained with Matryoshka Representation Learning so its 768-dimensional vectors can be cut to 512, 256, 128 or 64 dimensions with a small loss of quality (MTEB 62.28 at 768, 61.04 at 256). It reads up to 8,192 tokens, built on Nomic's long-context nomic-bert-2048, and every input needs a task prefix: search_document: for indexed texts, search_query: for queries, clustering: or classification:. Nomic released its training data and code in the contrastors repository, and nomic-embed-vision-v1.5 shares its embedding space for image search. It runs with sentence-transformers, Transformers and Transformers.js, is built into fastembed-rs, and the weights are Apache-2.0.

Problems it solves

  • embed long documents of several thousand tokens without chunking them into tiny pieces
  • store smaller vectors to cut my vector database bill without re-embedding everything with another model
  • choose the embedding size per index: full size for quality, 256 dimensions for a huge corpus
  • an open embedding model whose training data and code are public, for an audit or a reproducible paper
  • search images and text in one vector space
  • separate query and document embeddings for better retrieval in a RAG pipeline
  • embeddings for clustering and topic discovery across a big text collection
  • a self-hosted embedding model that competes with OpenAI's on benchmarks
  • open-weight embeddings I can use in a commercial product

Features

  • 768-dimensional embeddings, resizable to 512, 256, 128 or 64 (Matryoshka)
  • 8,192-token context
  • task prefixes: search_document, search_query, clustering, classification
  • MTEB 62.28 at 768 dimensions (Nomic's figure)
  • training data and code released (contrastors)
  • aligned with nomic-embed-vision-v1.5 for multimodal search
  • Transformers.js support
  • built into fastembed-rs
  • in the Ollama library as nomic-embed-text
  • Apache-2.0 licence

Limitations

  • Doesn't work well without a task prefix on every input: search_document, search_query, clustering or classification1

Alternatives

The same job

These do what nomic-embed-text-v1.5 does.

  1. text-embedding-3-large OpenAI's most capable embedding model, 3,072 dimensions that can be shortened
  2. jina-embeddings-v4 Universal embeddings for multimodal, multilingual retrieval of text, images and visually rich documents
  3. bge-small-en-v1.5 BAAI's small English general embedding model, version 1.5
  4. bge-base-en-v1.5 BAAI's English general embedding model, version 1.5
  5. snowflake-arctic-embed-m Snowflake's medium Arctic Embed retrieval model, the family's workhorse
  6. Cohere Embed Cohere's multimodal embedding models: text, images and PDF pages in one vector space, 128k context

Compare nomic-embed-text-v1.5 with the top 3