talira

potion-retrieval-32M

Minish's static embedding model optimised for retrieval

open sourceMITself-hostablefree

potion-retrieval-32M is a static embedding model from Minish optimised for retrieval: a fine-tune of potion-base-32M (distilled from bge-base-en-v1.5 with Model2Vec) on retrieval datasets, following Tom Aarsen's static-embeddings training approach with a smaller dataset and lower learning rate. Embeddings are averages of stored token vectors with no neural network at inference, so it's far faster than a transformer at lower quality: Minish reports an MTEB retrieval score of 35.06, the best of the static models it compared and 82% of all-MiniLM-L6-v2's 42.92. It has about 32.3M parameters and 512-dimensional vectors, loads in Model2Vec, model2vec-rs and sentence-transformers, and the weights are MIT-licensed.

Problems it solves

  • fast first-stage retrieval on CPU for a search box that must answer instantly
  • index millions of passages for search without paying for GPU embedding time
  • an embedding model for retrieval that loads in milliseconds inside a Rust or Python service
  • candidate retrieval before a reranker, where speed matters more than precision
  • search a local document collection on a laptop with a small static model
  • static embeddings tuned for queries and passages rather than general similarity

Features

  • static embeddings tuned for retrieval
  • about 32.3M parameters, 512-dimensional vectors
  • fine-tuned from potion-base-32M on retrieval datasets
  • MTEB retrieval score 35.06, about 82% of all-MiniLM-L6-v2's (Minish's figures)
  • reproduction script on the model card
  • loads in Model2Vec (Python), model2vec-rs (Rust) and sentence-transformers
  • MIT licence

Limitations

  • Doesn't match transformer models on retrieval quality: Minish reports an MTEB retrieval score of 35.06, against 42.92 for all-MiniLM-L6-v21

Alternatives

The same job

These do what potion-retrieval-32M does.

  1. potion-base-8M Minish's small static English embedding model, distilled from bge-base-en-v1.5
  2. bge-small-en-v1.5 BAAI's small English general embedding model, version 1.5
  3. snowflake-arctic-embed-xs Snowflake's tiny Arctic Embed retrieval model: 22M parameters, 384 dimensions
  4. all-MiniLM-L6-v2 Sentence Transformers model that maps sentences and paragraphs to a 384-dimensional vector space
  5. bge-base-en-v1.5 BAAI's English general embedding model, version 1.5
  6. snowflake-arctic-embed-s Snowflake's small Arctic Embed retrieval model: 33M parameters, 384 dimensions

Compare potion-retrieval-32M with the top 3