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.

相关推荐
星座5285 分钟前
智慧农林核心遥感技术暨:AI赋能农林遥感智能提取99案例实践-生化参数智能反演、表型信息智能提取、胁迫状态智能识别
人工智能·高光谱·智慧农林
糖葫芦君7 分钟前
普通卷积 VS 深度卷积
人工智能·深度学习
【建模先锋】16 分钟前
基于Python的智能故障诊断系统 | SmartDiag AI (基础版)V1.0 正式发布!
开发语言·人工智能·python·故障诊断·智能分析平台·大数据分析平台·智能故障诊断系统
简鹿办公16 分钟前
Opera 全线浏览器接入 Google Gemini,AI 上网体验全面升级
人工智能·google gemini·opera neon
AIsdhuang19 分钟前
2025 年企业 AI 培训精选指南:聚焦企业培训场景
人工智能·python
Léon's Blog27 分钟前
torch常见操作
人工智能
梵得儿SHI28 分钟前
AI Agent 性能优化与成本控制:从技术突破到行业落地实战指南
人工智能·性能优化·智能路由·aiagent落地实践·成本控制和稳定性保障·提示词压缩·模型运行慢
IT·陈寒34 分钟前
小智 AI 智能音箱 MCP 开发实战:从环境搭建到自定义语音技能完整指南
人工智能·语音识别·智能音箱
这张生成的图像能检测吗36 分钟前
(论文速读)一种基于双目视觉的机器人螺纹装配预对准姿态估计方法
人工智能·计算机视觉·机器人·手眼标定·位姿估计·双目视觉·螺纹装配
TextIn智能文档云平台39 分钟前
图片表格怎么转换成Markdown格式
人工智能·文档处理