BGE-M3
by Beijing Academy of Artificial Intelligence
Search by meaning in 100+ languages.
Embeddings and searchCommercial use
1. Commercial use
“sentence-similarity license: mit”
MIT license; keep the license notice with copies of the model you ship.
huggingface.co/BAAI/bge-m3/raw/main/README.md2. On your machine
The repository does not publish its parameter count in a form we read.
huggingface.co/BAAI/bge-m34. Momentum
Likes and the trending score are Hugging Face's own figures; attention, not quality.
huggingface.co/BAAI/bge-m3Checked against its official pages on Nov 23, 2026. Tap a verdict to see its source.How we checkedReport an error
What BGE-M3 does
BGE-M3 is an open text model by BAAI that turns texts in more than 100 languages into number lists, so apps can search by meaning. It reads anything from a short sentence to a long document of 8,192 tokens. It is on Hugging Face under the MIT license, free to use in paid products.
What people use it for
One search for many languages
Let people ask in Russian, Chinese or English and find matching passages written in any of them.
Search long documents whole
Index contracts, chapters or long pages without cutting them into tiny pieces first.
Keyword and meaning search together
Get word weights, similar to classic keyword search, from the same run, and mix them with meaning scores.
Three kinds of scores from one model
Combine meaning scores, keyword scores and word-by-word matching scores with your own weights for each pair of texts.
Better answers for a chatbot over documents
Use it as the first search step and let a reranker reorder the top results before the chatbot answers.
Tune it on your own data
Fine-tune all three kinds of scores on your own question and answer pairs when general search misses your field's words.
BGE-M3 popularity
As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none.
Where to run BGE-M3
Through an API
- hf-inference (Hugging Face Inference Providers)
BGE-M3 license
The model card lists the MIT license, so you may use, change and share it for free, also in paid products. Keep the copyright and license notice with copies you pass on.
MIT license; keep the license notice with copies of the model you ship.
“sentence-similarity license: mit” source
You may share the files and changed versions if the MIT copyright and license notice go with them.
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” source
MIT allows use in work for clients.
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” source
Alternatives
BGE-M3 This page
sentence-transformers · sentence-similarity
google · feature-extraction
google · sentence-similarity
paraphrase-multilingual-MiniLM-L12-v2
sentence-transformers · sentence-similarity
Get started
Tell your AI assistant
“Add multilingual search by meaning with BGE-M3: pip install FlagEmbedding, load BAAI/bge-m3 with BGEM3FlagModel(use_fp16=True), encode my passages once with a max_length that fits them, store the dense vectors, and rank by inner product with each encoded question.”
Install the FlagEmbedding library.
pip install -U FlagEmbeddingLoad the model; the files download on first use.
from FlagEmbedding import BGEM3FlagModel model = BGEM3FlagModel('BAAI/bge-m3', use_fp16=True)Encode texts and compare them by inner product of the dense vectors.
embeddings_1 = model.encode(sentences_1)['dense_vecs'] embeddings_2 = model.encode(sentences_2)['dense_vecs'] similarity = embeddings_1 @ embeddings_2.T
Mistakes to avoid
BGE-M3 no longer needs instructions on queries.
Shorter limits encode faster.
sentence-transformers and Transformers give the dense vectors only, as the model card describes.
The makers recommend hybrid search plus reranking for higher accuracy.
Questions
How many languages does it support?
More than 100, as BAAI reports.
How long can a text be?
Up to 8,192 tokens.
Do I add an instruction before questions?
No. BGE-M3 does not need one.
Can I use it with sentence-transformers?
Yes, for dense vectors; keyword weights and word-by-word vectors need the FlagEmbedding library.
Can I use it in a paid product?
Yes. The model card lists the MIT license.