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.

相关推荐
ziwu5 分钟前
【花朵识别系统】Python+TensorFlow+Django+人工智能+深度学习+卷积神经网络算法
人工智能·深度学习·图像识别
Wise玩转AI7 分钟前
医院智能体系统实战:基于 autogen 0.7 + DeepSeek 的多阶段工程落地(一)项目总览
人工智能·chatgpt·ai智能体·autogen
杭州泽沃电子科技有限公司13 分钟前
煤化工合成环节的监测:智能系统如何保障核心装置安全稳定运行?
运维·人工智能·科技·智能监测·煤化工
努力进修14 分钟前
视界重塑:基于Rokid AI眼镜的沉浸式视力康复训练系统设计与实现
人工智能·医疗健康·rokidsdk·ar开发·视力康复
科普瑞传感仪器16 分钟前
从“盲插”到“智插”:六维力控制技术如何革新PCBA自动化装配?
运维·人工智能·科技·ai·机器人·自动化·无人机
世岩清上18 分钟前
世岩清上:人工智能+园林,科技赋能下的园林新生态
人工智能·科技
P-ShineBeam34 分钟前
知识图谱-数据科学图谱可扩展平台-KGLiDS
人工智能·自然语言处理·知识图谱
智写AI36 分钟前
利用AI辅助撰写课题申报书中的研究方案部分,逻辑清晰度直接提升90%
人工智能
上天夭40 分钟前
PyTorch的Dataloader模块解析
人工智能·pytorch·python
秋邱1 小时前
技术深耕:教育 AGI 的能力跃迁与安全加固
大数据·人工智能