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.

相关推荐
TalkU浩克2 分钟前
DoRA详解:从LoRA到权重分解的进化
人工智能·深度学习·机器学习
聚客AI3 分钟前
⚡工程师的AGI落地指南:从基础概念到智能体开发的完整地图
人工智能·llm·agent
从零开始学习人工智能17 分钟前
Coze Studio:开源AI Agent开发工具的全方位实践指南
人工智能·开源
深度学习机器18 分钟前
GLM-4.5系列模型导读,综合能力更强的高性价比模型
人工智能·llm·agent
双向3320 分钟前
智能体的未来:AGI路径上的关键技术突破
人工智能
辣么大21 分钟前
语音助手如何理解图片
人工智能
天天讯通24 分钟前
机器人系统对接线索平台好处
大数据·数据库·人工智能·机器人·语音识别
Codebee25 分钟前
低代码与 AI 的深度融合:OneCode3.0 引领企业级应用开发新范式
人工智能·全栈
博睿谷IT99_25 分钟前
2025年华为HCIA-AI认证是否值得考?还是直接冲击HCIP?
人工智能·华为·ai·华为认证·职业规划
Albert_Lsk27 分钟前
【2025/07/31】GitHub 今日热门项目
人工智能·开源·github·开源协议