微调需安装额外依赖,用 pip install -U FlagEmbedding[finetune];模型需从 HuggingFace 单独下载,如 BAAI/bge-base-en-v1.5;检索时需按模型要求传入 query_instruction_for_retrieval 指令。

FlagEmbedding
FlagOpenMIT活跃维护提供文本嵌入与重排模型,用于语义检索和 RAG 场景,把文档和查询转成向量并做相关性排序。
Retrieval and Retrieval-augmented LLMs
pip install -U FlagEmbeddingREADME 未说明具体显存要求;快速开始示例使用 use_fp16=True,暗示可在支持 fp16 的 GPU 上运行,但未列出 GPU 厂商或型号。
BGE 一站式检索工具包,提供嵌入与重排模型,服务搜索和 RAG 场景
提供文本嵌入与重排模型,用于语义检索和 RAG 场景,把文档和查询转成向量并做相关性排序。
核心能力
- 提供 FlagAutoModel 统一加载 BGE 嵌入模型并编码文本
- 支持稠密、稀疏与多向量 ColBERT 三种检索方式
- BGE-M3 支持 100+ 语言、输入长度达 8192 token
- 提供 bge-reranker 系列重排模型提升排序效果
- 含微调与评测示例,覆盖嵌入和重排训练流程
容易踩的坑
- v1.4.2最新正式版2026-08-24 · 2026-08-24 02:55 UTC
What's Changed
- Fix Transformers 5 tokenizer compatibility by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1595
- Bump package version to 1.4.2 by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1596
Full Changelog: https://github.com/FlagOpen/FlagEmbedding/compare/v1.4.1...v1.4.2
- v1.4.12026-08-23 · 2026-08-23 12:48 UTC
查看更新说明
What's Changed
- Fix Gemma reranker imports with Transformers v5 by @Gui-Yue in https://github.com/FlagOpen/FlagEmbedding/pull/1580
- Fix Transformers 5 Trainer compatibility by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1592
- fix(reranker): support transformers v5 tokenizer preparation by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1593
- fix(reranker): normalize model mapping names by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1594
New Contributors
- @Gui-Yue made their first contribution in https://github.com/FlagOpen/FlagEmbedding/pull/1580
Full Changelog: https://github.com/FlagOpen/FlagEmbedding/compare/v1.4.0...v1.4.1
- v1.4.02026-04-22 · 2026-04-22 15:59 UTC
查看更新说明
What's Changed
- update reranker inference by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1466
- add feature: support customized
train_group_sizeby @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1491 - disable warning info: train_group_size is None by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1492
- Release BGE-Reasoner-preview by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1510
- fix bold values in README of BGE-Reasoner by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1511
- fix link in README of BGE-Reasoner by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1512
- Update BGE-Reasoner: new SOTA on BRIGHT by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1514
- Fix BGE-Reasoner Table & Results Sources by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1516
- Add Qwen3-Embedding-8B baseline for BGE-Reasoner by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1517
- Update BGE-Reasoner by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1522
- Update BGE-Reasoner and add
use_fast_tokenizerparam for finetuning by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1526 - fix abc/evaluation/runner.py: evaluate_metrics by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1527
- Update BGE-Reasoner: Release v0923 embedder by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1528
- Update modeling_mapping for embedder and update README of BGE-Reasoner by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1531
- fix bug: safe dist.get_rank() by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1532
- Support evaluation: BRIGHT by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1534
- update examples README: support BRIGHT evaluation by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1535
- fix bug: pytrec_eval installation issue by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1538
- add metric for evaluation: evaluate_recall_cap by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1553
- feat: add compatibility with transformers V5 by @therealmichaelberna in https://github.com/FlagOpen/FlagEmbedding/pull/1563
- Feat(embedder) use bf16 and fix the interface of attn_implementation in embedder.decode_only by @lnxtree in https://github.com/FlagOpen/FlagEmbedding/pull/1566
- fix(m3): make bf16 inference/train loading safe and unify numpy conversion by @lnxtree in https://github.com/FlagOpen/FlagEmbedding/pull/1567
- fix(eval): pass use_bf16 through AbsEvalRunner.get_model and COIR evaluator model initialization by @lnxtree in https://github.com/FlagOpen/FlagEmbedding/pull/1568
- feat: add use_mrl interface of finetune for embedder and truncate_dim for inference of embedder(MRL) by @lnxtree in https://github.com/FlagOpen/FlagEmbedding/pull/1570
- feat(embedder): Add decoder-only pseudo_moe inference with domain routing support by @lnxtree in https://github.com/FlagOpen/FlagEmbedding/pull/1572
- chore: update version to 1.4.0 in setup.py by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1575
New Contributors
- @therealmichaelberna made their first contribution in https://github.com/FlagOpen/FlagEmbedding/pull/1563
- @lnxtree made their first contribution in https://github.com/FlagOpen/FlagEmbedding/pull/1566
Full Changelog: https://github.com/FlagOpen/FlagEmbedding/compare/v1.3.5...v1.4.0
- v1.3.52025-05-28 · 2025-05-28 07:14 UTC
查看更新说明
What's Changed
- optimize evaluation process in evaluator.py by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1366
- fix "\n" issue: replace "\n" with "\n" by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1374
- fix bug: fix stop_self_pool function for inference by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1407
- Fix bug and optimize code by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1423
- docs(dataset): adjust typo - README.md by @luisegarduno in https://github.com/FlagOpen/FlagEmbedding/pull/1379
- add missing trust_remote_code[=true] when loading "openbmb/MiniCPM-Reranker-Light" by @listeng in https://github.com/FlagOpen/FlagEmbedding/pull/1378
- Change fixed value
256intrangetobatch_sizeby @pfldy2850 in https://github.com/FlagOpen/FlagEmbedding/pull/1401 - fix a bug in m3 modeling.py: #1410 by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1424
- refactor code and fix bug by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1425
- Update runner.py by @tuobay in https://github.com/FlagOpen/FlagEmbedding/pull/1421
- fix a bug in evaluation/mteb/runner.py by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1426
- coder by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1448
- update code by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1449
- update coder by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1450
- upload Matroyshka Re-Ranker by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1453
- upload reinforced_ir by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1457
- update reinforced_ir by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1458
- update reinforced_ir by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1459
- upload coder eval script by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1464
- update environment by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1465
New Contributors
- @listeng made their first contribution in https://github.com/FlagOpen/FlagEmbedding/pull/1378
- @pfldy2850 made their first contribution in https://github.com/FlagOpen/FlagEmbedding/pull/1401
- @tuobay made their first contribution in https://github.com/FlagOpen/FlagEmbedding/pull/1421
Full Changelog: https://github.com/FlagOpen/FlagEmbedding/compare/v1.3.4...v1.3.5
- v1.3.42025-02-07 · 2025-02-07 14:14 UTC
查看更新说明
What's Changed
- Inference docstring by @ZiyiXia in https://github.com/FlagOpen/FlagEmbedding/pull/1186
- delete useless parameters for embedder classes by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1189
- Bug of BGE M3 training by @baochi0212 in https://github.com/FlagOpen/FlagEmbedding/pull/1183
- feat:add bce-embedding-base_v1 by @zhudongwork in https://github.com/FlagOpen/FlagEmbedding/pull/1198
- Docstring by @ZiyiXia in https://github.com/FlagOpen/FlagEmbedding/pull/1200
- Update AbsDataset.py by @jhyeom1545 in https://github.com/FlagOpen/FlagEmbedding/pull/1204
- Fix bugs by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1211
- fixed a bug in AbsReranker.py for mps device support by @Swgj in https://github.com/FlagOpen/FlagEmbedding/pull/1216
- Fix bugs by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1219
- update stop pool by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1221
- update mteb eval by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1227
- update adjust batch size by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1229
- update mteb eval by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1230
- fix bugs and refactor code by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1231
- update mteb eval by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1235
- release training data for bge-multilingual-gemma2 by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1245
- add missed trust_remote_code for finetune code by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1248
- fix DecoderOnlyEmbedderICLSameDatasetTrainDataset category index error by @billvsme in https://github.com/FlagOpen/FlagEmbedding/pull/1232
- Clean code by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1250
- Fix bugs by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1253
- update examples by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1254
- update examples by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1255
- Fix air-bench eval bugs: AIRBenchEvalArgs by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1256
- Fix air-bench eval bugs: AIRBenchEvalArgs by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1257
- update code and README for scripts by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1258
- update examples by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1261
- update
C_MTEBreference by @emmanuel-ferdman in https://github.com/FlagOpen/FlagEmbedding/pull/1296 - [Bugfix] Typehint error on py38 by @DrDavidS in https://github.com/FlagOpen/FlagEmbedding/pull/1300
- Update model_mapping.py by @pengjunfeng11 in https://github.com/FlagOpen/FlagEmbedding/pull/1311
- fix bugs for embedder finetune by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1328
- fix a bug in icl/dataset.py by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1330
- Fix bugs by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1340
- fix beir data_loader.py: dev -> validation by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1341
- update embedder finetune code by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1342
- Fix Bug: OOM by @545999961 in https://github.com/FlagOpen/FlagEmbedding/pull/1349
- fix transformers 4.48.0 by @Hypothesis-Z in https://github.com/FlagOpen/FlagEmbedding/pull/1343
- Fix a bug in beir evaluation and release v1.3.4 by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1359
- del dp code by @hanhainebula in https://github.com/FlagOpen/FlagEmbedding/pull/1360
- support musa backend in FlagEmbedding by @qiyulei-mt in https://github.com/FlagOpen/FlagEmbedding/pull/1350
- docs: fix link to https://bge-model.com/ within NEWS
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。

News
-
3/6/2025: :fire::fire: Introduce BGE-VL (HF repo), State-Of-The-Art multimodal embedding models to support Any visual search applications (everything, including text-to-image, image-to-text, image&prompt-to-image, text-to-image&text, and more)! They are released under the MIT license and are completely free for both academic and commercial use. We also release MegaPairs (repo, paper), a massive synthetic dataset which empowers BGE-VL!
-
12/5/2024: :book: We built the BGE documentation for centralized BGE information and materials!
-
10/29/2024: :earth_asia: We created WeChat group for BGE. Scan the QR code to join the group chat! To get the first hand message about our updates and new release, or having any questions or ideas, join us now!
-
10/22/2024: We release another interesting model: OmniGen, which is a unified image generation model supporting various tasks. OmniGen can accomplish complex image generation tasks without the need for additional plugins like ControlNet, IP-Adapter, or auxiliary models such as pose detection and face detection.
-
9/10/2024: Introducing MemoRAG, a step forward towards RAG 2.0 on top of memory-inspired knowledge discovery (repo: https://github.com/qhjqhj00/MemoRAG, paper: https://arxiv.org/pdf/2409.05591v1)
-
9/2/2024: Start to maintain the tutorials. The contents within will be actively updated and eariched, stay tuned! :books:
-
7/26/2024: Release a new embedding model bge-en-icl, an embedding model that incorporates in-context learning capabilities, which, by providing task-relevant query-response examples, can encode semantically richer queries, further enhancing the semantic representation ability of the embeddings.
-
7/26/2024: Release a new embedding model bge-multilingual-gemma2, a multilingual embedding model based on gemma-2-9b, which supports multiple languages and diverse downstream tasks, achieving new SOTA on multilingual benchmarks (MIRACL, MTEB-fr, and MTEB-pl).
-
7/26/2024: Release a new lightweight reranker bge-reranker-v2.5-gemma2-lightweight, a lightweight reranker based on gemma-2-9b, which supports token compression and layerwise lightweight operations, can still ensure good performance while saving a significant amount of resources. :fire:
- 6/7/2024: Release a new benchmark MLVU, the first comprehensive benchmark specifically designed for long video understanding. MLVU features an extensive range of video durations, a diverse collection of video sources, and a set of evaluation tasks uniquely tailored for long-form video understanding. :fire:
- 5/21/2024: Release a new benchmark AIR-Bench together with Jina AI, Zilliz, HuggingFace, and other partners. AIR-Bench focuses on a fair out-of-distribution evaluation for Neural IR & RAG. It generates the synthetic data for benchmarking w.r.t. diverse domains and languages. It is dynamic and will be updated on regular basis. Leaderboard :fire:
- 4/30/2024: Release Llama-3-8B-Instruct-80K-QLoRA, extending the context length of Llama-3-8B-Instruct from 8K to 80K via QLoRA training on a few synthesized long-context data. The model achieves remarkable performance on various long-context benchmarks. Code :fire:
- 3/18/2024: Release new rerankers, built upon powerful M3 and LLM (GEMMA and MiniCPM, not so large actually :smiley:) backbones, supporitng multi-lingual processing and larger inputs, massive improvements of ranking performances on BEIR, C-MTEB/Retrieval, MIRACL, LlamaIndex Evaluation :fire:
- 3/18/2024: Release Visualized-BGE, equipping BGE with visual capabilities. Visualized-BGE can be utilized to generate embeddings for hybrid image-text data. :fire:
- 1/30/2024: Release BGE-M3, a new member to BGE model series! M3 stands for Multi-linguality (100+ languages), Multi-granularities (input length up to 8192), Multi-Functionality (unification of dense, lexical, multi-vec/colbert retrieval). It is the first embedding model which supports all three retrieval methods, achieving new SOTA on multi-lingual (MIRACL) and cross-lingual (MKQA) benchmarks. Technical Report and Code. :fire:
- 1/9/2024: Release Activation-Beacon, an effective, efficient, compatible, and low-cost (training) method to extend the context length of LLM. Technical Report
- 12/24/2023: Release LLaRA, a LLaMA-7B based dense retriever, leading to state-of-the-art performances on MS MARCO and BEIR. Model and code will be open-sourced. Please stay tuned. Technical Report and Code
- 11/23/2023: Release LM-Cocktail, a method to maintain general capabilities during fine-tuning by merging multiple language models. Technical Report
- 10/12/2023: Release LLM-Embedder, a unified embedding model to support diverse retrieval augmentation needs for LLMs. Technical Report
- 09/15/2023: The technical report of BGE has been released
- 09/15/2023: The massive training data of BGE has been released
- 09/12/2023: New models:
- New reranker model: release cross-encoder models
BAAI/bge-reranker-baseandBAAI/bge-reranker-large, which are more powerful than embedding model. We recommend to use/fine-tune them to re-rank top-k documents returned by embedding models. - update embedding model: release
bge-*-v1.5embedding model to alleviate the issue of the similarity distribution, and enhance its retrieval ability without instruction.
- New reranker model: release cross-encoder models
- 09/07/2023: Update fine-tune code: Add script to mine hard negatives and support adding instruction during fine-tuning.
- 08/09/2023: BGE Models are integrated into Langchain, you can use it like this; C-MTEB leaderboard is available.
- 08/05/2023: Release base-scale and small-scale models, best performance among the models of the same size 🤗
- 08/02/2023: Release
bge-large-*(short for BAAI General Embedding) Models, rank 1st on MTEB and C-MTEB benchmark! :tada: :tada: - 08/01/2023: We release the Chinese Massive Text Embedding Benchmark (C-MTEB), consisting of 31 test dataset.
BGE (BAAI General Embedding) focuses on retrieval-augmented LLMs, consisting of the following projects currently:

Installation
Using pip:
If you do not want to finetune the models, you can install the package without the finetune dependency:
pip install -U FlagEmbedding
If you want to finetune the models, you can install the package with the finetune dependency:
pip install -U FlagEmbedding[finetune]
Install from sources:
Clone the repository and install
git clone https://github.com/FlagOpen/FlagEmbedding.git
cd FlagEmbedding
# If you do not need to finetune the models, you can install the package without the finetune dependency:
pip install .
# If you want to finetune the models, install the package with the finetune dependency:
# pip install .[finetune]
For development in editable mode:
# If you do not need to finetune the models, you can install the package without the finetune dependency:
pip install -e .
# If you want to finetune the models, install the package with the finetune dependency:
# pip install -e .[finetune]
Quick Start
First, load one of the BGE embedding model:
from FlagEmbedding import FlagAutoModel
model = FlagAutoModel.from_finetuned('BAAI/bge-base-en-v1.5',
query_instruction_for_retrieval="Represent this sentence for searching relevant passages:",
use_fp16=True)
Then, feed some sentences to the model and get their embeddings:
sentences_1 = ["I love NLP", "I love machine learning"]
sentences_2 = ["I love BGE", "I love text retrieval"]
embeddings_1 = model.encode(sentences_1)
embeddings_2 = model.encode(sentences_2)
Once we get the embeddings, we can compute similarity by inner product:
similarity = embeddings_1 @ embeddings_2.T
print(similarity)
For more details, you can refer to embedder inference, reranker inference, embedder finetune, reranker fintune, evaluation.
If you're unfamiliar with any of related concepts, please check out the tutorial. If it's not there, let us know.
For more interesting topics related to BGE, take a look at research.
Community
We are actively maintaining the community of BGE and FlagEmbedding. Let us know if you have any suggessions or ideas!
Currently we are updating the tutorials, we aim to create a comprehensive and detailed tutorial for beginners on text retrieval and RAG. Stay tuned!
The following contents are releasing in the upcoming weeks:
- Evaluation
- BGE-EN-ICL
Model List
bge is short for BAAI general embedding.
| Model | Language | Description | query instruction for retrieval |
|---|---|---|---|
| BAAI/bge-en-icl | English | A LLM-based embedding model with in-context learning capabilities, which can fully leverage the model's potential based on a few shot examples | Provide instructions and few-shot examples freely based on the given task. |
| BAAI/bge-multilingual-gemma2 | Multilingual | A LLM-based multilingual embedding model, trained on a diverse range of languages and tasks. | Provide instructions based on the given task. |
| BAAI/bge-m3 | Multilingual | Multi-Functionality(dense retrieval, sparse retrieval, multi-vector(colbert)), Multi-Linguality, and Multi-Granularity(8192 tokens) | |
| LM-Cocktail | English | fine-tuned models (Llama and BGE) which can be used to reproduce the results of LM-Cocktail | |
| BAAI/llm-embedder | English | a unified embedding model to support diverse retrieval augmentation needs for LLMs | See README |
| BAAI/bge-reranker-v2-m3 | Multilingual | a lightweight cross-encoder model, possesses strong multilingual capabilities, easy to deploy, with fast inference. | |
| BAAI/bge-reranker-v2-gemma | Multilingual | a cross-encoder model which is suitable for multilingual contexts, performs well in both English proficiency and multilingual capabilities. | |
| BAAI/bge-reranker-v2-minicpm-layerwise | Multilingual | a cross-encoder model which is suitable for multilingual contexts, performs well in both English and Chinese proficiency, allows freedom to select layers for output, facilitating accelerated inference. | |
| BAAI/bge-reranker-v2.5-gemma2-lightweight | Multilingual | a cross-encoder model which is suitable for multilingual contexts, performs well in both English and Chinese proficiency, allows freedom to select layers, compress ratio and compress layers for output, facilitating accelerated inference. | |
| BAAI/bge-reranker-large | Chinese and English | a cross-encoder model which is more accurate but less efficient | |
| BAAI/bge-reranker-base | Chinese and English | a cross-encoder model which is more accurate but less efficient | |
| BAAI/bge-large-en-v1.5 | English | version 1.5 with more reasonable similarity distribution | Represent this sentence for searching relevant passages: |
| BAAI/bge-base-en-v1.5 | English | version 1.5 with more reasonable similarity distribution | Represent this sentence for searching relevant passages: |
| BAAI/bge-small-en-v1.5 | English | version 1.5 with more reasonable similarity distribution | Represent this sentence for searching relevant passages: |
| BAAI/bge-large-zh-v1.5 | Chinese | version 1.5 with more reasonable similarity distribution | 为这个句子生成表示以用于检索相关文章: |
| BAAI/bge-base-zh-v1.5 | Chinese | version 1.5 with more reasonable similarity distribution | 为这个句子生成表示以用于检索相关文章: |
| BAAI/bge-small-zh-v1.5 | Chinese | version 1.5 with more reasonable similarity distribution | 为这个句子生成表示以用于检索相关文章: |
| BAAI/bge-large-en | English | Embedding Model which map text into vector | Represent this sentence for searching relevant passages: |
| BAAI/bge-base-en | English | a base-scale model but with similar ability to bge-large-en | Represent this sentence for searching relevant passages: |
| BAAI/bge-small-en | English | a small-scale model but with competitive performance | Represent this sentence for searching relevant passages: |
| BAAI/bge-large-zh | Chinese | Embedding Model which map text into vector | 为这个句子生成表示以用于检索相关文章: |
| BAAI/bge-base-zh | Chinese | a base-scale model but with similar ability to bge-large-zh | 为这个句子生成表示以用于检索相关文章: |
| BAAI/bge-small-zh | Chinese | a small-scale model but with competitive performance | 为这个句子生成表示以用于检索相关文章: |
Contributors:
Thank all our contributors for their efforts and warmly welcome new members to join in!
Citation
If you find this repository useful, please consider giving a star :star: and citation
@misc{bge_m3,
title={BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation},
author={Chen, Jianlv and Xiao, Shitao and Zhang, Peitian and Luo, Kun and Lian, Defu and Liu, Zheng},
year={2023},
eprint={2309.07597},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{cocktail,
title={LM-Cocktail: Resilient Tuning of Language Models via Model Merging},
author={Shitao Xiao and Zheng Liu and Peitian Zhang and Xingrun Xing},
year={2023},
eprint={2311.13534},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{llm_embedder,
title={Retrieve Anything To Augment Large Language Models},
author={Peitian Zhang and Shitao Xiao and Zheng Liu and Zhicheng Dou and Jian-Yun Nie},
year={2023},
eprint={2310.07554},
archivePrefix={arXiv},
primaryClass={cs.IR}
}
@misc{bge_embedding,
title={C-Pack: Packaged Resources To Advance General Chinese Embedding},
author={Shitao Xiao and Zheng Liu and Peitian Zhang and Niklas Muennighoff},
year={2023},
eprint={2309.07597},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
License
FlagEmbedding is licensed under the MIT License.