BGE-M3 embeddings for RAG over long documents
BGE-M3 for RAG over long documents: 1024 dimensions, up to 8,192 tokens, 100+ languages, no prefix needed. MIT license.
| Model | BAAI/bge-m3 |
|---|---|
| Dimensions | 1024 |
| Max tokens | 8.2K |
| Distance | cosine |
| Languages | en, es, fr, de, it, pt, zh, ja |
| Chunk size | 1000 |
Notes
No prefix needed for queries or passages. Handles long inputs (8,192 tokens): chunks of about 1,000 words work well. The model can also produce sparse vectors (keyword search) with the FlagEmbedding library. Published by BAAI under the MIT license.
Estimated cost
Input tokens per call : ≈ 225
| Model | Per call | Per 1,000 calls |
|---|---|---|
| Mistral Large · Mistral AI | €0.00010 | €0.10 |
| DeepSeek Flash · DeepSeek | €0.00006 | €0.06 |
| DeepSeek V4 Pro · DeepSeek | €0.00026 | €0.26 |
| GPT-6 Luna · OpenAI | €0.00002 | €0.02 |
| GPT-6 Sol · OpenAI | €0.00040 | €0.40 |
| Claude Sonnet 5.5 · Anthropic | €0.00040 | €0.40 |
| Claude Opus 5.5 · Anthropic | €0.00079 | €0.79 |
| Self-hosted open-source model (Ollama, vLLM) | €0 in API fees (server cost only) | |
Input cost only, excluding the model's answer. Providers' public standard prices (Mistral AI, DeepSeek, OpenAI, Anthropic) converted from USD to euros at the ECB rate of September 29, 2026. Estimate: 1 token ≈ 3.6 characters.
Common to all 3 regions
Sources under a compatible licence.
Sources : BAAI/bge-m3 model, MIT license (Hugging Face model card)
Commercial use allowed · credit the author · changes allowed.
Text or data only: no access to files, network or commands.
Hosted in France (Scaleway, Paris). No transfer outside the EU.
European Union · 5/5
No personal data.
No training data: no summary required.
United States · 5/5
No personal data.
No training data: no documentation to publish.
China · 5/5
No personal data.
No training data; AI-generated content published in China must be labelled (2025).
Indicative summary as of 30/09/2026, not a legal certification. Method and sources →
Statistics
Likes : 0 · Comments : 0
Click a counter to show or hide it, hover the chart for details. One view per visitor per day, bots excluded; counting started on 30 September 2026.
- Identifier
- contextetech--bge-m3-long-documents
- Type
- Embeddings
- File
- bge-m3-long-documents.embedding.json
- Format
- JSON (application/json)
- Size
- 629 bytes
- Encoding
- UTF-8
- Estimated tokens
- ≈ 175
- Language
- English
- License
- MIT
- Commercial use
- Allowed
- Personal data
- None
- Version
- 1.0
- Published on
- October 2, 2026 at 9:54 PM
- Updated on
- October 2, 2026 at 9:54 PM
- Storage
- in database
- Uses
- 0
- Likes
- 0
bge-m3-long-documents.embedding.json
{
"format": "contextetech/embedding/v1",
"id": "contextetech/bge-m3-long-documents",
"description": "BGE-M3 for RAG over long documents: 1024 dimensions, up to 8,192 tokens, 100+ languages, no prefix needed. MIT license.",
"tags": [
"rag",
"multilingual",
"long-documents"
],
"license": "MIT",
"language": "en",
"model": "BAAI/bge-m3",
"dimensions": 1024,
"maxTokens": 8192,
"distance": "cosine",
"languages": [
"en",
"es",
"fr",
"de",
"it",
"pt",
"zh",
"ja"
],
"prefixes": {
"query": "",
"passage": ""
},
"chunkSize": 1000,
"benchmarks": []
}Embed (Python)
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("BAAI/bge-m3")
q = model.encode(["your input here"], normalize_embeddings=True)
docs = model.encode(["…"], normalize_embeddings=True)
print(q.shape) # (1, 1024)
print(q @ docs.T) # similarité
Community
No comments yet. Share your feedback, it will help the next person.