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.
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.
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
- Nov 25Chose 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.
- Nov 25Through 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.
- Nov 25Via Ollama, some inputs began failing in March with 'failed to encode response: json: unsupported value: NaN'; prefixing text with a label worked around it.
- Nov 25Used in Open WebUI's RAG from January 2026 and in the authors' own RAG from February, served via Ollama.