anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Turns text in more than 100 languages into vectors for search, from short sentences to documents of 8192 tokens. It supports dense, multi-vector and sparse retrieval in one model. By BAAI.
bge-m3 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download BAAI/bge-m3
BGE-M3 is an embedding model from BAAI that converts text into vectors so you can search and compare passages. Its three traits are many functions, many languages and many input sizes.
It offers three retrieval modes from one model: dense, multi-vector and sparse. It supports over 100 languages, and the text you give it can be a brief sentence or a long document that runs to 8192 tokens.
Developers who build search, question answering or retrieval-augmented generation over text in many languages, and researchers who compare retrieval methods.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Teams building RAG systems | Embed documents and queries for retrieval | Find relevant passages across languages |
| Enterprise search | Knowledge base builders | Match questions to long documents | Search files of up to 8192 tokens |
| Research | Retrieval researchers | Test dense, sparse and multi-vector modes | Compare hybrid retrieval against a single mode |
Skip it if you need a model that writes text, since this one only produces vectors and token weights for matching.
| Use case | Who | What they get back |
|---|---|---|
| Semantic search | Search developers | Dense vectors that match meaning across languages |
| Keyword-style matching | Teams using hybrid retrieval | Sparse token weights similar to BM25 |
| Long document retrieval | Knowledge base teams | Embeddings for inputs of up to 8192 tokens |
pip install -U huggingface_hub hf download BAAI/bge-m3
Embed your documents and your queries with the model, then compare them. The card recommends a pipeline of hybrid retrieval followed by re-ranking.
| Mode | What it does |
|---|---|
| Dense retrieval | Compares whole-text vectors for meaning |
| Multi-vector retrieval | Keeps several vectors per text for finer matching |
| Sparse retrieval | Gives token weights, similar to BM25, at no extra cost when you compute dense embeddings |
| Re-ranking | Uses a reranker model after retrieval to filter the selected text |
You embed a set of documents in several languages, then embed a question and rank the documents by similarity. A re-ranker such as bge-reranker then filters the top results for better accuracy.
If you are new to embeddings, think of this model as a way to turn each piece of text into a list of numbers where similar meanings sit close together. Start by embedding two sentences and comparing them.
If you know the field, one checkpoint covers dense, multi-vector and sparse retrieval, so you can mix embedding and lexical signals without a second model. The card recommends pairing hybrid retrieval with a cross-encoder re-ranker.
Turns text in more than 100 languages into vectors for search, from short sentences to documents of 8192 tokens. It supports dense, multi-vector and sparse retrieval in one model. By BAAI.
Made by BAAI on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: BGE-M3 is an embedding model from BAAI that converts text into vectors so you can search and compare passages. Its three traits are many functions, many languages and many input sizes.
It offers three retrieval modes from one model: dense, multi-vector and sparse. It supports over 100 languages, and the text you give it can be a brief sentence or a long document that runs to 8192 tokens.
Who it suits: Developers who build search, question answering or retrieval-augmented generation over text in many languages, and researchers who compare retrieval methods.
Industry | Who uses it | How they use it | Example
Software | Teams building RAG systems | Embed documents and queries for retrieval | Find relevant passages across languages
Enterprise search | Knowledge base builders | Match questions to long documents | Search files of up to 8192 tokens
Research | Retrieval researchers | Test dense, sparse and multi-vector modes | Compare hybrid retrieval against a single mode
Skip it if you need a model that writes text, since this one only produces vectors and token weights for matching.
Where to use it:
Use case | Who | What they get back
Semantic search | Search developers | Dense vectors that match meaning across languages
Keyword-style matching | Teams using hybrid retrieval | Sparse token weights similar to BM25
Long document retrieval | Knowledge base teams | Embeddings for inputs of up to 8192 tokens
How to set it up:
pip install -U huggingface_hub
hf download BAAI/bge-m3
How to use it: Embed your documents and your queries with the model, then compare them. The card recommends a pipeline of hybrid retrieval followed by re-ranking.
Mode | What it does
Dense retrieval | Compares whole-text vectors for meaning
Multi-vector retrieval | Keeps several vectors per text for finer matching
Sparse retrieval | Gives token weights, similar to BM25, at no extra cost when you compute dense embeddings
Re-ranking | Uses a reranker model after retrieval to filter the selected text
Example: You embed a set of documents in several languages, then embed a question and rank the documents by similarity. A re-ranker such as bge-reranker then filters the top results for better accuracy.
For newcomers and experts: If you are new to embeddings, think of this model as a way to turn each piece of text into a list of numbers where similar meanings sit close together. Start by embedding two sentences and comparing them.
If you know the field, one checkpoint covers dense, multi-vector and sparse retrieval, so you can mix embedding and lexical signals without a second model. The card recommends pairing hybrid retrieval with a cross-encoder re-ranker.
Embed documents with BGE-M3
Retrieve with dense and sparse signals
Merge results in hybrid retrieval
Re-rank with a cross-encoder
Good to know:
Title: Maximum input length in tokens
bge-m3: 8192 tokens
bge-m3-unsupervised: 8192 tokens
bge-large-en-v1.5: 512 tokens
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download BAAI/bge-m3
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| bge-m3 This page | 29,282,167 | 3,989 | — | mit | |
| multilingual-e5-largeShares xlm-roberta · sentence-similarity · text-embeddings-inference | 7,120,555 | 1,284 | 560M | mit | |
| all-MiniLM-L6-v2Shares sentence-similarity · text-embeddings-inference · sentence-transformers | 174,740,184 | 6,104 | 22.7M | apache-2.0 | |
| bge-small-en-v1.5Shares sentence-similarity · text-embeddings-inference · sentence-transformers | 45,750,548 | 671 | 33.4M | mit | |
| paraphrase-multilingual-MiniLM-L12-v2Shares sentence-similarity · text-embeddings-inference · sentence-transformers | 26,540,125 | 1,505 | 118M | apache-2.0 | |
| bge-base-en-v1.5Shares sentence-similarity · text-embeddings-inference · sentence-transformers | 8,508,165 | 542 | 109M | mit |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.