FlagEmbedding
ActiveDescription
Open-source BGE series embedding models and retrieval tools from BAAI, providing state-of-the-art text embeddings and rerankers for Chinese and English, widely used in RAG systems and agent retrieval pipelines.
Key Features
- State-of-the-art multilingual embeddings (BGE-M3) supporting 100+ languages with dense, lexical, and multi-vector retrieval
- BGE-VL multimodal embeddings for text-to-image, image-to-text, and cross-modal visual search
- Lightweight rerankers with token compression and layerwise operations for efficient resource usage
- In-context learning capable embeddings (bge-en-icl) that encode semantically richer queries
- Comprehensive toolkit covering embedding, retrieval, reranking, and long-context LLM extensions
- Fully open-source under MIT license for both academic and commercial use
Use Cases
Strengths & Limitations
✅ Strengths
- • Actively maintained, recent updates
- • High community interest (12.1k stars)
- • Permissive open-source license (MIT)
- • Established track record (3 years in production)
⚠️ Limitations
- • High issue backlog (907 open issues)
Categories
Quick Start
pip install FlagEmbedding && python -c "from FlagEmbedding import BGEM3FlagModel; model = BGEM3FlagModel('BAAI/bge-m3'); output = model.encode(['Hello world']); print(output['dense_vecs'].shape)"