BGE-M3

by BAAI · Model · Language & code models

Turns text in over a hundred languages into dense, sparse and multi-vector representations for search, reading long inputs up to thousands of tokens.

promising

Long-input embedding model that works in RAG, but Ollama gives only dense vectors

Latest · Nov 25Model card (July 2024 version) says it reads up to 8192 tokens and does dense, sparse and multi-vector retrieval in one model.

AccessOpen weightsContext8K tokensLicenseMITCommercial useyes

Why we say so

The model card says it reads up to 8192 tokens and does dense, sparse and multi-vector retrieval in one model. The only hands-on voice, BpF_BitespotFactory, chose it over multilingual-e5-small and has used it in RAG since January 2026. Through Ollama they got dense vectors only and hit NaN encoding errors on some inputs from March, which a text prefix worked around.

Evidence

  1. Nov 25
    Chose it over multilingual-e5-small for the long input limit and agent-RAG potential, accepting slower re-embedding; one cloud AI called it heavy, another light.
  2. Nov 25
    Through Ollama, only dense vectors are returned; sparse is unavailable. The authors never used the 8192-token input or sparse features, and BM25 handled keyword search.
  3. Nov 25
    Via Ollama, some inputs began failing in March with 'failed to encode response: json: unsupported value: NaN'; prefixing text with a label worked around it.
  4. Nov 25
    Used in Open WebUI's RAG from January 2026 and in the authors' own RAG from February, served via Ollama.

Everything said about BGE-M3, on the wire

Alternatives