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.

相关推荐
是翎6 分钟前
OpenAI 官方 GPT-Image 2.5 提示词指南与示例
大数据·人工智能·gpt·深度学习·自然语言处理·知识图谱
老周聊架构16 分钟前
AIP 架构总览:把大模型拧紧到 Ontology 的推理—行动闭环
人工智能·架构·palantir·ontology
呆呆在发呆.19 分钟前
Agnet狼人杀
人工智能·python·microsoft
anxiao_m20 分钟前
不同行业适配哪些云桌面?四大主流品牌场景适配详解
网络·数据库·人工智能
AI人工智能集结号20 分钟前
AI搜索可见度监测软件有哪些?选择时如何区分功能范围
大数据·人工智能
Είναι η κοπέλα29 分钟前
YOLO 演进 v5→v11 与 2026 选型指南
人工智能·yolo
hhzz32 分钟前
【OpenCV 入门到精通 04】视频入门与绘图交互:从摄像头到鼠标画笔
人工智能·python·opencv·计算机视觉·音视频·交互
Thomas.Sir32 分钟前
第40课:TensorFlow|模型推理部署前置知识【离线推理、接口调用基础】
人工智能·python·tensorflow
王解34 分钟前
CL-04_nanoAgent:103 行极简实现到完整 Agent
人工智能·prompt
元岳数字人小元38 分钟前
数字人交互的用户体验设计与场景交互感受
运维·人工智能·开源·人机交互·交互