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.

相关推荐
测试员周周4 分钟前
【Agent评测】别只会跑 RAGAS!RAG 评测想要 CI 门禁,试试 DeepEval 断言打分
人工智能
sinat_3239603715 分钟前
老游戏怎么被重写:读 OpenRCT2
人工智能
汤姆宝库21 分钟前
推理级联的实现:置信度估计与FrugalGPT式路由
人工智能
gptAI_plus23 分钟前
GPT 写 SQL:避免订单金额被重复统计
人工智能
吕炘嵘24 分钟前
会背答案,不会修 Bug——一次 0.6B模型Java 微调复盘
人工智能
Thomas.Sir25 分钟前
第017讲:AI模型开发|可行性评分卡与一票否决:把主观判断结构化:数据不及格,其余满分也必须 No-Go
人工智能·ai
JonaHu36 分钟前
GPT Image 2.6 商品图横竖版适配:安全区、留白与裁切预检
图像处理·人工智能·python·aigc
AAA修煤气灶刘哥1 小时前
一口气拍 30 秒,MAGI-2 能接下 Seedance 2.5 的活吗?
人工智能·llm
AI 编程助手GPT1 小时前
GPT 写 SQL:避免订单金额被重复统计
jvm·人工智能·sql·gpt
AAA修煤气灶刘哥1 小时前
QQ 音乐怎么在 25 毫秒内,决定一句话该交给谁?
人工智能·算法·llm