← all repositories
FlagOpen/FlagEmbedding

One lab’s attempt to own the entire retrieval stack

BGE bundles embedding models, rerankers, training pipelines, and benchmarks into one sprawling retrieval shop for search and RAG.

FlagEmbedding
Not currently ranked — collecting fresh signals.
star history

What it does FlagEmbedding houses BGE (BAAI General Embedding), a family of embedding and reranking models built by the Beijing Academy of Artificial Intelligence. The repo provides inference and fine-tuning scripts for these models, alongside a sprawling research portfolio that includes multimodal search, long-context LLM extensions, and custom benchmarks. It functions less like a single library and more like a consolidated research lab.

The interesting bit BGE-M3 unifies dense, lexical, and ColBERT-style multi-vector retrieval in one model—a rarity in the embedding world. The project also keeps pushing into adjacent territory, recently adding BGE-VL for visual search and lightweight Gemma2-based rerankers. It treats retrieval as a kingdom to be conquered, not a solved problem.

Key highlights

  • BGE-M3 handles 100+ languages and up to 8,192 tokens, supporting dense, lexical, and multi-vector retrieval in one architecture.
  • BGE-VL extends the family into multimodal embeddings for text-to-image, image-to-text, and mixed visual search.
  • Includes dedicated rerankers (some based on Gemma2) intended to refine results from embedding retrievers.
  • Publishes its own training data, technical reports, and benchmarks (C-MTEB, AIR-Bench), all under an MIT license.
  • LangChain integration is available for drop-in use.

Caveats

  • The repository is sprawling; headline features like OmniGen and MemoRAG live in separate repos and are only announced here.
  • With research projects, tutorials, datasets, and model code all mixed together, finding the right entry point can feel like browsing a lab wiki rather than a focused package.

Verdict A strong bookmark for RAG builders who want production-ready embeddings with training code and evaluation tools attached. Less useful if you need a minimal, single-purpose vector search client.

Frequently asked

What is FlagOpen/FlagEmbedding?
BGE bundles embedding models, rerankers, training pipelines, and benchmarks into one sprawling retrieval shop for search and RAG.
Is FlagEmbedding open source?
Yes — FlagOpen/FlagEmbedding is open source, released under the MIT license.
What language is FlagEmbedding written in?
FlagOpen/FlagEmbedding is primarily written in Python.
How popular is FlagEmbedding?
FlagOpen/FlagEmbedding has 12k stars on GitHub.
Where can I find FlagEmbedding?
FlagOpen/FlagEmbedding is on GitHub at https://github.com/FlagOpen/FlagEmbedding.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.