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.

相关推荐
Baihai_IDP2 分钟前
便宜又好用的模型,为什么越来越集中在闭源阵营?
人工智能·面试·llm
沐言人生4 分钟前
再见了FineReport!这个强大的开源报表BI系统,集AI智能体、透视表、多图表,多格式导出、定时分发功能于一体,可私有化部署
人工智能·架构
存储架构师-iVY10 分钟前
从端侧192GB到云端PCIe 5.0:拆解AI时代的存储架构演进
大数据·人工智能·ai存储·lpcamm2·socamm2·pcie 5.0·统一内存架构
Kapaseker1 小时前
OpenAI 史上最差的模型?Astra 6.2
人工智能
龙腾AI白云2 小时前
视觉运动控制与灵巧抓取:具身智能手眼协调的学习
大数据·数据库·人工智能·机器学习·pygame
Highcharts.js2 小时前
Highcharts 在商业智能中的实战应用:释放数据洞察
前端·人工智能·算法·信息可视化·数据分析·数据可视化·highcharts
漂流瓶jz9 小时前
【AI】大模型LoRA微调原理与实验:基于CMRC2018与Qwen3-0.6B训练实测
人工智能·算法·llm
对你无可奈何10 小时前
用 AI 开发一套 AIOps 平台:接入工具、编排 Agent,追踪任务和资源
人工智能
羲云网络10 小时前
GPT Image 2.6 海报改横竖版:文字安全区、排版分离与交付验收
图像处理·人工智能·python·aigc
weixin_4187727210 小时前
公司年会年年办,AI 日历一年翻不了几页
人工智能·数字化转型·企业信息化