{
 "kind": "model",
 "slug": "baai-bge-m3",
 "path": "models/open/baai-bge-m3/",
 "name": "BGE-M3",
 "maker": "Beijing Academy of Artificial Intelligence",
 "density": "full",
 "crumbs": [
  [
   "Models",
   "models/"
  ],
  [
   "Open models",
   "models/open/"
  ]
 ],
 "lead": "Search by meaning in 100+ languages.",
 "chips": [
  {
   "label": "Embeddings and search",
   "path": "models/open/?task=embed"
  },
  {
   "label": "Commercial use"
  }
 ],
 "primary": {
  "label": "Copy model id",
  "copy": "BAAI/bge-m3"
 },
 "links": [
  {
   "label": "Hugging Face",
   "href": "https://huggingface.co/BAAI/bge-m3"
  },
  {
   "label": "Demos",
   "href": "https://huggingface.co/spaces?search=BGE-M3"
  }
 ],
 "track": "New versions, price and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "Commercial use",
   "value": "Allowed",
   "status": "yes",
   "sub": "MIT",
   "quote": "sentence-similarity license: mit",
   "note": "MIT license; keep the license notice with copies of the model you ship.",
   "src": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md"
  },
  {
   "key": "local",
   "label": "On your machine",
   "status": "unknown",
   "value": "Size not published",
   "sub": null,
   "note": "The repository does not publish its parameter count in a form we read.",
   "src": "https://huggingface.co/BAAI/bge-m3"
  },
  {
   "key": "api",
   "label": "Through an API",
   "status": "yes",
   "value": "1 provider",
   "sub": "hf-inference",
   "note": "Hugging Face Inference Providers that serve it live.",
   "src": "https://huggingface.co/BAAI/bge-m3"
  },
  {
   "key": "rising",
   "label": "Momentum",
   "status": "info",
   "value": "4,041 likes",
   "sub": "Hugging Face trending score 15",
   "note": "Likes and the trending score are Hugging Face's own figures; attention, not quality.",
   "src": "https://huggingface.co/BAAI/bge-m3"
  }
 ],
 "vfoot": "Checked against its official pages on Nov 23, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What BGE-M3 does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people use it for"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "One search for many languages",
       "text": "Let people ask in Russian, Chinese or English and find matching passages written in any of them.",
       "idea": false
      },
      {
       "title": "Search long documents whole",
       "text": "Index contracts, chapters or long pages without cutting them into tiny pieces first.",
       "idea": false
      },
      {
       "title": "Keyword and meaning search together",
       "text": "Get word weights, similar to classic keyword search, from the same run, and mix them with meaning scores.",
       "idea": false
      },
      {
       "title": "Three kinds of scores from one model",
       "text": "Combine meaning scores, keyword scores and word-by-word matching scores with your own weights for each pair of texts.",
       "idea": false
      },
      {
       "title": "Better answers for a chatbot over documents",
       "text": "Use it as the first search step and let a reranker reorder the top results before the chatbot answers.",
       "idea": false
      },
      {
       "title": "Tune it on your own data",
       "text": "Fine-tune all three kinds of scores on your own question and answer pairs when general search misses your field's words.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "BGE-M3 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "4,041",
       "l": "likes on Hugging Face"
      },
      {
       "n": "35.5M",
       "l": "downloads, last 30 days"
      },
      {
       "n": "15",
       "l": "Hugging Face trending score"
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none."
    }
   ]
  },
  {
   "id": "run",
   "nav": "Run it",
   "h2": "Where to run BGE-M3",
   "parts": [
    {
     "t": "h3",
     "text": "Through an API"
    },
    {
     "t": "list",
     "items": [
      "hf-inference (Hugging Face Inference Providers)"
     ]
    }
   ]
  },
  {
   "id": "license",
   "nav": "License",
   "h2": "BGE-M3 license",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid product",
       "v": "Yes",
       "status": "yes",
       "sub": "MIT license; keep the license notice with copies of the model you ship.",
       "quote": "sentence-similarity license: mit",
       "src": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md"
      },
      {
       "l": "Ship the weights to users",
       "v": "With conditions",
       "status": "cond",
       "sub": "You may share the files and changed versions if the MIT copyright and license notice go with them.",
       "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
       "src": "https://github.com/FlagOpen/FlagEmbedding/blob/master/LICENSE"
      },
      {
       "l": "Work for clients",
       "v": "Yes",
       "status": "yes",
       "sub": "MIT allows use in work for clients.",
       "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
       "src": "https://github.com/FlagOpen/FlagEmbedding/blob/master/LICENSE"
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "BGE-M3",
       "me": true,
       "facts": [
        "4,041 likes",
        "MIT"
       ]
      },
      {
       "name": "all-MiniLM-L6-v2",
       "path": "models/open/sentence-transformers-all-minilm-l6-v2/",
       "why": "sentence-transformers · sentence-similarity",
       "facts": [
        "6,182 likes",
        "Apache 2.0"
       ]
      },
      {
       "name": "embeddinggemma-2",
       "path": "models/open/google-embeddinggemma-2/",
       "why": "google · feature-extraction",
       "facts": [
        "3,507 likes",
        "Apache 2.0"
       ]
      },
      {
       "name": "embeddinggemma-300m",
       "path": "models/open/google-embeddinggemma-300m/",
       "why": "google · sentence-similarity",
       "facts": [
        "2,158 likes",
        "Gemma terms"
       ]
      },
      {
       "name": "paraphrase-multilingual-MiniLM-L12-v2",
       "path": "models/open/sentence-transformers-paraphrase-multilingual-minilm-l12-v2/",
       "why": "sentence-transformers · sentence-similarity",
       "facts": [
        "1,519 likes",
        "Apache 2.0"
       ]
      }
     ],
     "more": "All embeddings and search models",
     "more_path": "models/open/?task=embed"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the FlagEmbedding library.",
       "code": "pip install -U FlagEmbedding",
       "src": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md"
      },
      {
       "text": "Load the model; the files download on first use.",
       "code": "from FlagEmbedding import BGEM3FlagModel\nmodel = BGEM3FlagModel('BAAI/bge-m3',  use_fp16=True)",
       "src": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md"
      },
      {
       "text": "Encode texts and compare them by inner product of the dense vectors.",
       "code": "embeddings_1 = model.encode(sentences_1)['dense_vecs']\nembeddings_2 = model.encode(sentences_2)['dense_vecs']\nsimilarity = embeddings_1 @ embeddings_2.T",
       "src": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Adding a query instruction such as \"Represent this sentence for searching relevant passages:\" as with older BGE models.",
       "fix": "Encode questions as they are.",
       "why": "BGE-M3 no longer needs instructions on queries."
      },
      {
       "dont": "Keeping max_length at 8192 for short texts.",
       "fix": "Set a smaller max_length that fits your texts.",
       "why": "Shorter limits encode faster."
      },
      {
       "dont": "Loading it in sentence-transformers and expecting keyword weights or word-by-word vectors.",
       "fix": "Use the FlagEmbedding library's BGEM3FlagModel for sparse and multi-vector output.",
       "why": "sentence-transformers and Transformers give the dense vectors only, as the model card describes."
      },
      {
       "dont": "Relying on vector search alone for a document chatbot.",
       "fix": "Combine dense and keyword scores and rerank the top results.",
       "why": "The makers recommend hybrid search plus reranking for higher accuracy."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "How many languages does it support?",
       "a": "More than 100, as BAAI reports.",
       "evidence": {
        "url": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md",
        "quote": "Multi-Linguality: It can support more than 100 working languages."
       }
      },
      {
       "q": "How long can a text be?",
       "a": "Up to 8,192 tokens.",
       "evidence": {
        "url": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md",
        "quote": "Multi-Granularity: It is able to process inputs of different granularities, spanning from short sentences to long documents of up to 8192 tokens."
       }
      },
      {
       "q": "Do I add an instruction before questions?",
       "a": "No. BGE-M3 does not need one.",
       "evidence": {
        "url": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md",
        "quote": "The only difference is that the BGE-M3 model no longer requires adding instructions to the queries."
       }
      },
      {
       "q": "Can I use it with sentence-transformers?",
       "a": "Yes, for dense vectors; keyword weights and word-by-word vectors need the FlagEmbedding library.",
       "evidence": {
        "url": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md",
        "quote": "You also can use sentence-transformers and huggingface transformers to generate dense embeddings."
       }
      },
      {
       "q": "Can I use it in a paid product?",
       "a": "Yes. The model card lists the MIT license.",
       "evidence": {
        "url": "https://huggingface.co/BAAI/bge-m3/raw/main/README.md",
        "quote": "sentence-similarity license: mit"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Beijing Academy of Artificial Intelligence"
  ],
  [
   "Task",
   "Embeddings and search"
  ],
  [
   "Pipeline",
   "sentence-similarity"
  ],
  [
   "On Hugging Face since",
   "Jan 27, 2024"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Hugging Face",
   "BAAI/bge-m3"
  ]
 ],
 "good": [
  "Each text becomes a list of 1,024 numbers, and inputs can be up to 8,192 tokens long.",
  "Questions need no special phrase in front, unlike older BGE models.",
  "Half precision (use_fp16) makes it faster with a slight loss of quality."
 ],
 "checked_line": "Hand-checked from 2 official pages on Nov 23, 2026; numbers refresh daily.",
 "logo": null
}