NLP Bi-Encoder和Re-ranker

Retrieve & Re-Rank

https://www.sbert.net/examples/applications/retrieve_rerank/README.html

Bi-Encoder vs. Cross-Encoder

https://www.sbert.net/examples/applications/cross-encoder/README.html

Bi-Encoder会用BERT对输入文本编码,再根据cosine相似度分数筛选文本。Cross-Encoder会直接计算两个句子的相关性分数。

如何将BI和Cross Encoder配合使用?可以先用BI-Encoder选出top 100个候选项,再用Cross-Encoder挑选最佳选项。

Combining Bi- and Cross-Encoders

Cross-Encoder achieve higher performance than Bi-Encoders, however, they do not scale well for large datasets.

Here, it can make sense to combine Cross- and Bi-Encoders, for example in Information Retrieval / Semantic Search scenarios:

First, you use an efficient Bi-Encoder to retrieve e.g. the top-100 most similar sentences for a query.

Then, you use a Cross-Encoder to re-rank these 100 hits by computing the score for every (query, hit) combination.

相关推荐
拓向AI几秒前
南京高性价比DeepSeek优化推广指南
大数据·人工智能
ZX0X学习中15 分钟前
一句话让 AI 生成 Excel 多文件合并工具:码道 CLI 实战
人工智能·excel·ai编程·华为云码道
AI小码18 分钟前
WAIC 2026前瞻:AI产业进入拼落地的下半场
人工智能·算法·ai·程序员·大模型·编程·智能体
小企鹅么么22 分钟前
【AI应用开发工程师】第六章:Context Engineering
人工智能·ai
code 小楊24 分钟前
LLM Wiki 深度解析:颠覆传统RAG,开启大模型知识管理新纪元
人工智能·科技
前端H32 分钟前
生成式 UI 实战:AI 如何重塑前端界面
前端·人工智能·ui
nanawinona33 分钟前
2026年AI量化学习,交易认知和技术实现要一起走
人工智能·python
影山飞雄34 分钟前
Using-Superpowers skill 逐行深度解析
人工智能
2601_9564141436 分钟前
AI3D模型生成工具怎么比较?2026主流平台对比与实测维度解析
人工智能·3d
一键生成网站41 分钟前
政务国企数据可视化大屏AI工具对比与信创安全选型指南
人工智能·信息可视化·政务·