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.

相关推荐
redsea_HR几秒前
红海云HR系统评测:三级国际医院HR数字化落地全程参考
大数据·人工智能
wordbaby3 分钟前
Agent 不够用? 也许你差的不是模型
人工智能
双翌视觉9 分钟前
可见光之外的视界,短波红外成像技术能做什么?
人工智能·计算机视觉·视觉检测
m0_5474866611 分钟前
《人工智能导论:深度学习大模型基础》全套PPT课件2026
人工智能·深度学习·大模型
ZhengEnCi14 分钟前
为什么 DeepSeek V4 Flash 可以超过 V4 Pro Preview
人工智能
wordbaby14 分钟前
别问实习生,看回执单——Agent 验证层的核心原则
人工智能
fivebliss15 分钟前
取算存三步细化及延迟指标解析
人工智能·性能优化
武子康19 分钟前
让不同大模型共享一个 Agent:Pi 如何统一 Provider 与 Context Handoff
人工智能
秦先生在广东21 分钟前
`agent-skills`:用工程纪律驯化 AI 编程 Agent 的结构化实践
人工智能
月光船幽幽26 分钟前
门控函数SHS阈值与调制机制解析
人工智能·python·算法