Skip to content
Agents tracked: 378 Downloads (7d): 242M down 5.8% GitHub stars: 8.3M VS Code installs: 151M Releases (7d): 389 Agent status: 1 with issues Updated Oct 10, 2026

BGE (FlagEmbedding) by BAAI

Open-source BGE embedding and reranker models to self-host for retrieval and RAG.

Embeddings and rerank Open source

Price
Free (open source)
you pay only for the compute it runs on
Free tier
Open source
SDK downloads
—
PyPI FlagEmbedding
Status
—
no public status page

Pricing

Free tier—
Cheapest paid plan—
Usage price—
Good to knowMIT-licensed models and library; self-hosted only, no official paid API from BAAI.

Open source: free to run on your own hardware; you pay only for the compute. Checked

Use it from an agent

MCP serverNone found
PyPIpip install FlagEmbedding

Alternatives to BGE (FlagEmbedding)

All embeddings and rerank

APIFreePrice SDK downloads / wkGitHub starsMCP
Nomic
Platform and API for AI agents to search, understand documents, and parse drawings.
Limited agent requests, no credit card required Free plan · paid from $20/mo — —
Mixedbread
Search and indexing API for knowledge retrieval from various data types.
$5 one-time credits, 100 queries/min, 6,000... Free plan · paid from $20/mo — —
Voyage AI
API for text, code, multimodal and contextualized embeddings plus rerankers for retrieval.
First 200 million tokens free per account... Free plan
then $0.02/1M tokens (voyage-4-lite); $0.06/1M (voyage-4);...
— —
OpenAI Embeddings
OpenAI API endpoint that turns text into vectors with text-embedding-3 models for search and RAG.
— $0.02/1M tokens (text-embedding-3-small); $0.13/1M... — —
Is BGE (FlagEmbedding) right for you? Ask AgentGid →