#1313th of 34 in Open models

flagembedding

BGE embedding and reranker models with inference, fine-tuning and evaluation code

Stars
12.3k
License
MIT
Last commit
Aug 2026
Last release
Aug 2026
Language
Python
Stars, last 29 weeks+876
31 Mar 2026: 11,385 stars7 Apr 2026: 11,413 stars14 Apr 2026: 11,457 stars21 Apr 2026: 11,497 stars28 Apr 2026: 11,535 stars5 May 2026: 11,561 stars12 May 2026: 11,591 stars19 May 2026: 11,626 stars26 May 2026: 11,658 stars2 Jun 2026: 11,696 stars9 Jun 2026: 11,737 stars16 Jun 2026: 11,775 stars23 Jun 2026: 11,801 stars30 Jun 2026: 11,839 stars7 Jul 2026: 11,866 stars14 Jul 2026: 11,894 stars21 Jul 2026: 11,917 stars28 Jul 2026: 11,950 stars4 Aug 2026: 11,977 stars11 Aug 2026: 12,005 stars18 Aug 2026: 12,025 stars25 Aug 2026: 12,053 stars1 Sept 2026: 12,087 stars8 Sept 2026: 12,122 stars15 Sept 2026: 12,138 stars22 Sept 2026: 12,161 stars29 Sept 2026: 12,192 stars6 Oct 2026: 12,208 stars13 Oct 2026: 12,237 stars20 Oct 2026: 12,261 stars

11,385 on 31 Mar 202612,261 on 20 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

FlagEmbedding is the Python package and code repository for BAAI's BGE embedding and reranker models. It covers inference, fine-tuning and evaluation for dense, sparse and multi-vector retrieval. The model list includes BGE-M3 (100+ languages, 8192 tokens), bge-en-icl and several cross-encoder rerankers. Tutorials and research code are included.

Who it is for: Engineers building search and RAG who need open embedding and rerank models

Strengths

  • Embedders and rerankers with inference, fine-tuning and evaluation scripts in one package
  • BGE-M3 supports dense, sparse and multi-vector retrieval, 100+ languages, 8192-token input
  • MIT license; models published on Hugging Face and package installable via pip
  • Includes hard-negative mining, fine-tune scripts and retrieval/RAG tutorials

Weaknesses

  • Library only: no server, UI or vector store, so retrieval pipeline is yours to wire
  • README is a long news log; some research code lives in separate repos
  • Fine-tuning needs the extra [finetune] install; hardware requirements are unknown
  • Query instructions differ per model and must be set correctly

What it needs

  • GPU optional
  • Models: BGE embedding models (Hugging Face), BGE rerankers, BGE-M3, bge-en-icl, bge-multilingual-gemma2

Also in Open models

See all 34
Also in Open models
RankProjectScore
1llmfitRust tool that checks which LLMs fit your RAM, CPU and GPU38.2k starsMIT87 out of 100
2layaSingle-pass multilingual classifier for typed choice, score and yes/no decisions Live demo ↗ (opens in a new tab)33.8k starsApache-2.084 out of 100
3timesfmPretrained time-series foundation model for zero-shot forecasting from Google Research34.7k starsApache-2.075 out of 100
#4speechPyTorch toolkit for training and deploying ASR, TTS and speech LLM models Live demo ↗ (opens in a new tab)18.6k starsApache-2.070 out of 100
#5yueLyrics-to-song model that writes an editable melody and chord score first Live demo ↗ (opens in a new tab)12.5k starsApache-2.065 out of 100