Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

BGE-M3

by Beijing Academy of Artificial Intelligence

Search by meaning in 100+ languages.

Embeddings and searchCommercial use

Hugging FaceDemos

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.md

Checked 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

4,041
likes on Hugging Face
35.5M
downloads, last 30 days
15
Hugging Face trending score

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.

In a paid product
Yes

MIT license; keep the license notice with copies of the model you ship.

“sentence-similarity license: mit” source

Ship the weights to users
With conditions

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

Work for clients
Yes

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

4,041 likesMIT

all-MiniLM-L6-v2

sentence-transformers · sentence-similarity

6,182 likesApache 2.0

embeddinggemma-2

google · feature-extraction

3,507 likesApache 2.0

embeddinggemma-300m

google · sentence-similarity

2,158 likesGemma terms

paraphrase-multilingual-MiniLM-L12-v2

sentence-transformers · sentence-similarity

1,519 likesApache 2.0

All embeddings and search models

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.”

  1. Install the FlagEmbedding library.

    pip install -U FlagEmbedding

    From huggingface.co/BAAI/bge-m3/raw/main/README.md

  2. Load the model; the files download on first use.

    from FlagEmbedding import BGEM3FlagModel
    model = BGEM3FlagModel('BAAI/bge-m3',  use_fp16=True)

    From huggingface.co/BAAI/bge-m3/raw/main/README.md

  3. 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

    From huggingface.co/BAAI/bge-m3/raw/main/README.md

Mistakes to avoid

Adding a query instruction such as "Represent this sentence for searching relevant passages:" as with older BGE models.
Encode questions as they are.

BGE-M3 no longer needs instructions on queries.

Keeping max_length at 8192 for short texts.
Set a smaller max_length that fits your texts.

Shorter limits encode faster.

Loading it in sentence-transformers and expecting keyword weights or word-by-word vectors.
Use the FlagEmbedding library's BGEM3FlagModel for sparse and multi-vector output.

sentence-transformers and Transformers give the dense vectors only, as the model card describes.

Relying on vector search alone for a document chatbot.
Combine dense and keyword scores and rerank the top results.

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.