{"id":103596,"date":"2026-09-11T02:49:41","date_gmt":"2026-09-10T18:49:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/103596.html"},"modified":"2026-09-11T02:49:41","modified_gmt":"2026-09-10T18:49:41","slug":"7-%e7%a7%8d%e6%a3%80%e7%b4%a2%e6%a8%a1%e5%bc%8f-rrf-%e8%9e%8d%e5%90%88-rerank%ef%bc%9a%e4%b8%80%e4%b8%aa%e6%9f%a5%e8%af%a2%e5%bc%95%e6%93%8e%e7%9a%84%e5%ae%8c%e6%95%b4%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/103596.html","title":{"rendered":"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184937-6aa2fbc1c0ac4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5feb\u901f\u9605\u8bfb&#xff08;30 \u79d2\u901f\u89c8&#xff09;<\/p>\n<ul>\n<li>EasyRAG \u7684 QueryEngine \u652f\u6301 7 \u79cd\u67e5\u8be2\u6a21\u5f0f&#xff1a;Naive \/ Local \/ Global \/ Hybrid \/ Mix \/ Structure \/ Bypass<\/li>\n<li>\u591a\u8def\u53ec\u56de\u7528 RRF&#xff08;Reciprocal Rank Fusion&#xff09;\u878d\u5408&#xff1a;\u53ea\u770b\u6392\u540d\u4e0d\u770b\u5206\u6570&#xff0c;\u5929\u7136\u514d\u75ab&#034;\u4e0d\u540c\u6765\u6e90\u5206\u6570\u91cf\u7ea7\u4e0d\u540c&#034;\u7684\u95ee\u9898<\/li>\n<li>Rerank \u662f\u53ef\u9009\u589e\u5f3a&#xff1a;\u8c03\u7528\u5931\u8d25\u81ea\u52a8\u964d\u7ea7\u4e3a\u539f\u59cb\u987a\u5e8f&#xff0c;\u91cd\u6392\u6302\u4e86\u4e0d\u5f71\u54cd\u4e3b\u6d41\u7a0b<\/li>\n<li>\u67e5\u8be2\u7f13\u5b58&#xff08;LRU&#xff09;&#043; SSE \u6d41\u5f0f\u8f93\u51fa&#xff1a;\u76f8\u540c\u95ee\u9898\u79d2\u56de&#xff0c;\u957f\u7b54\u6848\u9010\u5b57\u5410\u51fa<\/li>\n<li>\u6a21\u5f0f\u9009\u62e9\u5efa\u8bae&#xff1a;\u9ed8\u8ba4 Mix&#xff0c;\u95f2\u804a\u7528 Bypass&#xff0c;\u7ed3\u6784\u5316\u957f\u6587\u6863\u8bd5 Structure<\/li>\n<\/ul>\n<p>\u524d\u60c5\u63d0\u8981&#xff1a;\u4e0a\u4e00\u7bc7\u8bb2\u4e86\u62a4\u680f\u5728\u751f\u6210\u6d41\u7a0b\u4e2d\u7684\u4f4d\u7f6e\u3002\u8fd9\u7bc7\u770b\u62a4\u680f\u4e0a\u6e38\u7684\u6838\u5fc3\u2014\u2014\u68c0\u7d22\u5f15\u64ce\u672c\u8eab\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u4e2a\u95ee\u9898&#xff0c;\u4e03\u79cd\u7b54\u6cd5<\/h3>\n<p>\u540c\u4e00\u4e2a\u95ee\u9898&#034;\u670d\u52a1\u5668\u652f\u6301\u54ea\u4e9b RAID \u7ea7\u522b&#034;&#xff0c;\u4e0d\u540c\u6a21\u5f0f\u4e0b\u8d70\u7684\u8def\u5b8c\u5168\u4e0d\u540c&#xff1a;<\/p>\n<ul>\n<li>Naive&#xff1a;\u53ea\u505a\u5411\u91cf\u68c0\u7d22&#xff0c;\u5feb\u800c\u7cd9&#xff1b;<\/li>\n<li>Local&#xff1a;\u4ece\u95ee\u9898\u5b9e\u4f53\u51fa\u53d1\u505a\u56fe\u6269\u5c55&#xff08;\u7b2c 3 \u7bc7&#xff09;&#xff1b;<\/li>\n<li>Global&#xff1a;\u56fe\u7684\u5168\u5c40\u89c6\u89d2&#xff0c;\u56de\u7b54\u603b\u7ed3\u6027\u95ee\u9898&#xff1b;<\/li>\n<li>Hybrid&#xff1a;\u5411\u91cf &#043; \u5173\u952e\u8bcd\u53cc\u8def\u53ec\u56de&#xff1b;<\/li>\n<li>Mix&#xff1a;\u5411\u91cf &#043; \u5173\u952e\u8bcd &#043; \u56fe&#xff0c;\u4e09\u8def\u5168\u5f00&#xff1b;<\/li>\n<li>Structure&#xff1a;\u8d70\u6587\u6863\u7ed3\u6784\u6811&#xff0c;\u6309\u7ae0\u8282\u5b9a\u4f4d&#xff1b;<\/li>\n<li>Bypass&#xff1a;\u8df3\u8fc7\u4e00\u5207\u68c0\u7d22\u76f4\u63a5\u95ee\u6a21\u578b&#xff08;\u95f2\u804a\u515c\u5e95&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u505a\u4e00\u4e2a&#034;\u6700\u5f3a\u6a21\u5f0f&#034;\u901a\u5403&#xff1f;\u56e0\u4e3a\u6bcf\u79cd\u6a21\u5f0f\u7684\u6210\u672c\u548c\u5ef6\u8fdf\u4e0d\u540c&#xff0c;\u800c\u95ee\u9898\u7684\u4ef7\u503c\u5bc6\u5ea6\u4e5f\u4e0d\u540c\u3002\u95f2\u804a\u7528 Mix \u662f\u6d6a\u8d39&#xff0c;\u591a\u8df3\u95ee\u9898\u7528 Naive \u662f\u81ea\u6740\u3002\u628a\u9009\u62e9\u6743\u4ea4\u7ed9\u8c03\u7528\u65b9&#xff08;\u6216\u67e5\u8be2\u8def\u7531&#xff09;&#xff0c;\u624d\u662f\u5de5\u7a0b\u5316\u505a\u6cd5\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u6b21\u67e5\u8be2\u7684\u5b8c\u6574\u65c5\u7a0b<\/h3>\n<p>\u5ba2\u6237\u7aef\u8bf7\u6c42&#xff08;mode, top_k, stream&#8230;&#xff09;<br \/>\n    \u2193<br \/>\n\u2460 \u7f13\u5b58\u68c0\u67e5&#xff08;\u975e bypass\/\u975e\u8c03\u8bd5\u6a21\u5f0f&#xff09;<br \/>\n    \u2192 \u547d\u4e2d LRU \u7f13\u5b58 \u2192 \u76f4\u63a5\u8fd4\u56de&#xff0c;\u5168\u7a0b 0 \u6b21\u5916\u90e8\u8c03\u7528<br \/>\n    \u2193 \u672a\u547d\u4e2d<br \/>\n\u2461 &#xff08;\u53ef\u9009&#xff09;QueryRouter \u67e5\u8be2\u8def\u7531<br \/>\n    \u2192 \u590d\u6742\u95ee\u9898\u5206\u89e3\u4e3a\u5b50\u95ee\u9898 \/ \u5224\u65ad&#034;\u65e0\u9700\u68c0\u7d22&#034;\u76f4\u63a5\u653e\u884c<br \/>\n    \u2193<br \/>\n\u2462 \u591a\u8def\u53ec\u56de<br \/>\n    \u2192 \u5411\u91cf\u68c0\u7d22&#xff1a;VectorStorage.query&#xff08;\u652f\u6301\u65f6\u95f4\u8303\u56f4\u3001biz_id \u8fc7\u6ee4&#xff09;<br \/>\n    \u2192 \u5173\u952e\u8bcd\u68c0\u7d22&#xff1a;PG tsvector \u6216 Tantivy<br \/>\n    \u2192 \u56fe\u6269\u5c55&#xff1a;\u5b9e\u4f53 \u2192 \u90bb\u5c45 \u2192 \u5173\u7cfb&#xff08;\u6279\u91cf\u63a5\u53e3&#xff09;<br \/>\n    \u2193<br \/>\n\u2463 RRF \u878d\u5408&#xff08;\u591a\u8def\u7ed3\u679c\u5408\u5e76\u6392\u5e8f&#xff09;<br \/>\n    \u2193<br \/>\n\u2464 &#xff08;\u53ef\u9009&#xff09;Rerank \u7cbe\u6392 \u2014\u2014 \u5931\u8d25\u5219\u964d\u7ea7\u4e3a \u2463 \u7684\u987a\u5e8f<br \/>\n    \u2193<br \/>\n\u2465 \u8bc1\u636e\u8bc4\u5206&#xff08;\u62a4\u680f 1&#xff09;\u2192 \u6784\u9020 Prompt \u2192 LLM \u6d41\u5f0f\u751f\u6210<br \/>\n    \u2193<br \/>\n\u2466 \u58f0\u660e\u9a8c\u8bc1 &#043; \u5f15\u7528\u6821\u9a8c&#xff08;\u62a4\u680f 2\/3&#xff09;<br \/>\n    \u2193<br \/>\n\u2467 \u5199\u7f13\u5b58&#xff08;\u62d2\u7b54\u4e0d\u5199&#xff09;\u2192 SSE \u8fd4\u56de<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184939-6aa2fbc32005e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h3>RRF \u878d\u5408&#xff1a;\u4e3a\u4ec0\u4e48\u4e0d\u7528\u52a0\u6743\u5206\u6570<\/h3>\n<p>\u591a\u8def\u53ec\u56de\u540e\u5fc5\u987b\u5408\u5e76\u6392\u5e8f\u3002\u76f4\u89c9\u505a\u6cd5\u662f\u52a0\u6743&#xff1a;\u6700\u7ec8\u5206 &#061; 0.6\u00d7\u5411\u91cf\u5206 &#043; 0.4\u00d7\u5173\u952e\u8bcd\u5206\u3002<\/p>\n<p>\u8fd9\u662f\u9519\u7684\u3002 \u5411\u91cf\u4f59\u5f26\u76f8\u4f3c\u5ea6\u5728 0~1&#xff0c;RRF \u524d\u7684\u5173\u952e\u8bcd BM25 \u5206\u6570\u53ef\u80fd\u662f 15.7&#xff0c;\u56fe\u6269\u5c55\u7684\u6743\u91cd\u53c8\u662f\u53e6\u4e00\u5957\u91cf\u7eb2\u3002\u76f4\u63a5\u76f8\u52a0\u7b49\u4e8e\u8ba9\u91cf\u7eb2\u5927\u7684\u90a3\u8def\u8bf4\u4e86\u7b97&#xff0c;\u6743\u91cd\u8c03\u5230\u5929\u8352\u5730\u8001\u4e5f\u8c03\u4e0d\u5e73\u3002<\/p>\n<p>RRF&#xff08;Reciprocal Rank Fusion&#xff09;\u7684\u601d\u8def\u5e72\u8106\u5229\u843d\u2014\u2014\u53ea\u770b\u6392\u540d&#xff0c;\u4e0d\u770b\u5206\u6570&#xff1a;<\/p>\n<p>RRF_score(doc) &#061; \u03a3  1 \/ (k &#043; rank_i(doc))<br \/>\n              \u6bcf\u4e00\u8def<\/p>\n<ul>\n<li>\u67d0\u6587\u6863\u5728\u7b2c i \u8def\u6392\u7b2c 1 \u540d&#xff0c;\u8d21\u732e 1\/(k&#043;1)&#xff1b;\u6392\u7b2c 10 \u540d&#xff0c;\u8d21\u732e 1\/(k&#043;10)&#xff1b;<\/li>\n<li>k \u662f\u5e73\u6ed1\u5e38\u6570&#xff08;EasyRAG \u53ef\u914d\u7f6e&#xff0c;\u5e38\u7528 60&#xff09;&#xff0c;\u9632\u6b62\u5934\u90e8\u6392\u540d\u5dee\u8ddd\u8fc7\u5927&#xff1b;<\/li>\n<li>\u591a\u8def\u90fd\u53ec\u56de\u7684\u6587\u6863\u5206\u6570\u7d2f\u52a0&#xff0c;\u5929\u7136\u5956\u52b1&#034;\u591a\u8def\u5171\u8bc6&#034;\u3002<\/li>\n<\/ul>\n<p>\u4f18\u70b9&#xff1a;\u91cf\u7eb2\u514d\u75ab\u3001\u96f6\u8c03\u53c2&#xff08;k \u4e0d\u654f\u611f&#xff09;\u3001\u5b9e\u73b0\u4e94\u884c\u4ee3\u7801\u3002\u8fd9\u4e5f\u662f EasyRAG Hybrid\/Mix \u6a21\u5f0f\u7684\u6807\u51c6\u505a\u6cd5\u3002<\/p>\n<h3>Rerank&#xff1a;\u7cbe\u6392&#xff0c;\u4f46\u8981\u53ef\u964d\u7ea7<\/h3>\n<p>RRF \u89e3\u51b3&#034;\u8c01\u8be5\u6392\u524d\u9762&#034;&#xff0c;Rerank \u89e3\u51b3&#034;\u6392\u5f97\u591f\u4e0d\u591f\u51c6&#034;\u3002Cross-encoder \u91cd\u6392\u628a&#xff08;\u95ee\u9898, \u5757&#xff09;\u914d\u5bf9\u6253\u5206&#xff0c;\u7cbe\u5ea6\u8fdc\u9ad8\u4e8e\u53cc\u5854\u5411\u91cf\u76f8\u4f3c\u5ea6\u2014\u2014\u4ee3\u4ef7\u662f\u4e00\u6b21\u7f51\u7edc\u8c03\u7528\u3002<\/p>\n<p>EasyRAG \u5bf9 Rerank \u7684\u6001\u5ea6&#xff1a;\u9526\u4e0a\u6dfb\u82b1&#xff0c;\u7edd\u4e0d\u963b\u585e\u3002<\/p>\n<p><span class=\"token comment\">\/\/ easyrag-llm\/src\/rerank.rs \u7684\u6838\u5fc3\u8bed\u4e49&#xff1a;<\/span><br \/>\n<span class=\"token comment\">\/\/ \u8c03\u7528\u6210\u529f \u2192 \u7528\u91cd\u6392\u5206\u6570\u8986\u76d6\u6392\u5e8f&#xff0c;\u5199\u56de\u6bcf\u5757\u7684 rerank_score<\/span><br \/>\n<span class=\"token comment\">\/\/ \u8c03\u7528\u5931\u8d25 \u2192 tracing::warn \u8bb0\u65e5\u5fd7&#xff0c;\u8fd4\u56de\u539f\u59cb\u987a\u5e8f&#xff0c;\u4e3b\u6d41\u7a0b\u7ee7\u7eed<\/span><\/p>\n<p>rerank_score \u5199\u56de\u5757\u5143\u6570\u636e\u8fd8\u6709\u4e2a\u526f\u4f5c\u7528\u7ea2\u5229&#xff1a;\u4e0a\u4e00\u7bc7\u7684\u8bc1\u636e\u8bc4\u5206\u5feb\u8def\u5f84\u76f4\u63a5\u590d\u7528\u8fd9\u4e9b\u5206\u6570\u2014\u2014\u4e00\u6b21\u8c03\u7528&#xff0c;\u4e24\u5904\u53d7\u76ca\u3002<\/p>\n<h3>\u7f13\u5b58&#xff1a;\u54ea\u4e9b\u95ee\u9898\u503c\u5f97\u7f13\u5b58<\/h3>\n<p>\u67e5\u8be2\u7ea7 LRU \u7f13\u5b58&#xff08;QueryCache&#xff0c;\u624b\u5199\u6709\u754c\u5b9e\u73b0&#xff1a;HashMap &#043; VecDeque \u7ef4\u62a4\u8bbf\u95ee\u987a\u5e8f&#xff0c;\u5bb9\u91cf 256 \u6761&#xff09;&#xff0c;\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u7f13\u5b58\u952e &#061; \u95ee\u9898 &#043; \u6a21\u5f0f &#043; \u5173\u952e\u53c2\u6570&#xff08;top_k \u7b49&#xff09;&#xff1b;<\/li>\n<li>Bypass \u6a21\u5f0f\u4e0d\u7f13\u5b58&#xff08;\u5bf9\u8bdd\u4e0a\u4e0b\u6587\u6bcf\u6b21\u4e0d\u540c&#xff09;&#xff1b;<\/li>\n<li>\u62d2\u7b54\u4e0d\u5199\u7f13\u5b58\u2014\u2014\u7528\u6237\u8865\u4f20\u4e86\u6587\u6863\u518d\u95ee\u540c\u6837\u7684\u95ee\u9898&#xff0c;\u5fc5\u987b\u80fd\u62ff\u5230\u65b0\u7b54\u6848&#xff1b;<\/li>\n<li>\u547d\u4e2d\u7f13\u5b58\u7684\u67e5\u8be2\u96f6\u5916\u90e8\u8c03\u7528&#xff0c;\u5ef6\u8fdf\u4ece\u79d2\u7ea7\u964d\u5230\u6beb\u79d2\u7ea7\u3002<\/li>\n<\/ul>\n<p>\u987a\u5e26\u533a\u5206\u4e00\u4e0b&#xff1a;moka \u7f13\u5b58\u7528\u5728\u66f4\u4e0b\u6e38\u7684 LLM \u54cd\u5e94\u7f13\u5b58&#xff08;easyrag-llm\/src\/cache.rs&#xff0c;Caffeine \u8bed\u4e49\u7684\u672c\u5730\u7f13\u5b58&#xff09;\u2014\u2014\u67e5\u8be2\u7f13\u5b58\u7ba1&#034;\u6574\u4e2a\u7b54\u6848&#034;&#xff0c;LLM \u7f13\u5b58\u7ba1&#034;\u5355\u6b21\u6a21\u578b\u8c03\u7528&#034;&#xff0c;\u4e24\u5c42\u5404\u7ba1\u5404\u7684\u3002<\/p>\n<h3>\u6d41\u5f0f\u8f93\u51fa&#xff1a;\u9996\u5b57\u5ef6\u8fdf\u7684\u6218\u4e89<\/h3>\n<p>\u751f\u6210\u9636\u6bb5\u7528 complete_stream \u4ea7\u51fa token \u6d41&#xff0c;server \u5c42\u8f6c\u6210 SSE&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ axum SSE&#xff1a;\u6bcf\u4e2a token \u5305\u4e00\u4e2a\u4e8b\u4ef6\u63a8\u7ed9\u524d\u7aef<\/span><br \/>\n<span class=\"token keyword\">let<\/span> events <span class=\"token operator\">&#061;<\/span> chunks<span class=\"token punctuation\">.<\/span><span class=\"token function\">map<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">move<\/span> <span class=\"token closure-params\"><span class=\"token closure-punctuation punctuation\">|<\/span>chunk<span class=\"token closure-punctuation punctuation\">|<\/span><\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">Ok<\/span><span class=\"token punctuation\">::<\/span><span class=\"token operator\">&lt;<\/span>_<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Infallible<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Event<\/span><span class=\"token punctuation\">::<\/span><span class=\"token function\">default<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">json_data<\/span><span class=\"token punctuation\">(<\/span>frame<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">unwrap_or_default<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">Sse<\/span><span class=\"token punctuation\">::<\/span><span class=\"token function\">new<\/span><span class=\"token punctuation\">(<\/span>events<span class=\"token punctuation\">.<\/span><span class=\"token function\">boxed<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u7528\u6237\u4f53\u611f\u4e0a&#xff0c;&#034;\u7b49 8 \u79d2\u770b\u5230\u5168\u6587&#034;\u548c&#034;0.8 \u79d2\u5f00\u59cb\u51fa\u5b57&#034;\u5b8c\u5168\u662f\u4e24\u4e2a\u4ea7\u54c1\u3002\u6d41\u5f0f\u4e0d\u662f\u6027\u80fd\u4f18\u5316&#xff0c;\u662f\u4f53\u9a8c\u4f18\u5316\u3002<\/p>\n<hr \/>\n<h3>\u6a21\u5f0f\u9009\u578b\u901f\u67e5\u8868<\/h3>\n<table>\n<tr>\u6a21\u5f0f\u53ec\u56de\u8def\u6570\u5178\u578b\u5ef6\u8fdf\u9002\u5408<\/tr>\n<tbody>\n<tr>\n<td>Naive<\/td>\n<td>1&#xff08;\u5411\u91cf&#xff09;<\/td>\n<td>\u6700\u4f4e<\/td>\n<td>\u7b80\u5355\u4e8b\u5b9e\u95ee\u7b54\u3001\u4f4e\u5ef6\u8fdf\u573a\u666f<\/td>\n<\/tr>\n<tr>\n<td>Hybrid<\/td>\n<td>2&#xff08;\u5411\u91cf&#043;\u5173\u952e\u8bcd&#xff09;<\/td>\n<td>\u4f4e<\/td>\n<td>\u5173\u952e\u8bcd\u91cd\u8981\u7684\u573a\u666f&#xff08;\u578b\u53f7\u3001\u9519\u8bef\u7801&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Local<\/td>\n<td>\u56fe\u6269\u5c55<\/td>\n<td>\u4e2d<\/td>\n<td>\u5b9e\u4f53\u5173\u7cfb\u95ee\u9898<\/td>\n<\/tr>\n<tr>\n<td>Global<\/td>\n<td>\u56fe\u5168\u5c40<\/td>\n<td>\u4e2d<\/td>\n<td>\u603b\u7ed3\u6027\u95ee\u9898<\/td>\n<\/tr>\n<tr>\n<td>Mix<\/td>\n<td>3&#xff08;\u5168\u5f00&#xff09;<\/td>\n<td>\u8f83\u9ad8<\/td>\n<td>\u751f\u4ea7\u9ed8\u8ba4<\/td>\n<\/tr>\n<tr>\n<td>Structure<\/td>\n<td>\u7ed3\u6784\u6811<\/td>\n<td>\u4e2d<\/td>\n<td>\u7ae0\u8282\u6e05\u6670\u7684\u957f\u6587\u6863<\/td>\n<\/tr>\n<tr>\n<td>Bypass<\/td>\n<td>0<\/td>\n<td>\u6700\u4f4e<\/td>\n<td>\u95f2\u804a\u3001\u65e0\u9700\u68c0\u7d22<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u4e2a\u5b9e\u7528\u7684\u51b3\u7b56\u987a\u5e8f&#xff1a;\u5148\u8dd1 Mix \u5efa\u7acb\u57fa\u7ebf \u2192 \u770b\u8bc4\u6d4b\u62a5\u544a&#xff08;\u7b2c 7 \u7bc7&#xff09;\u627e\u77ed\u677f \u2192 \u6309\u77ed\u677f\u964d\u914d\u6216\u52a0\u914d\u3002\u522b\u4e00\u4e0a\u6765\u5c31\u8ffd\u6c42\u5168\u5f00&#xff0c;\u6210\u672c\u548c\u5ef6\u8fdf\u90fd\u662f\u771f\u91d1\u767d\u94f6\u3002<\/p>\n<hr \/>\n<h3>\u8e29\u5751\u8bb0\u5f55<\/h3>\n<p>\u5751 1&#xff1a;\u5173\u952e\u8bcd\u68c0\u7d22\u548c\u5411\u91cf\u68c0\u7d22\u7684\u7ed3\u679c\u91cd\u590d\u5360\u5751\u3002 \u540c\u4e00\u4e2a\u5757\u4e24\u8def\u90fd\u53ec\u56de&#xff0c;\u5408\u5e76\u65f6\u5f53\u6210\u4e24\u4e2a\u5019\u9009\u3002\u4fee\u590d&#xff1a;\u878d\u5408\u524d\u6309\u5757 ID \u53bb\u91cd&#xff0c;\u4fdd\u7559\u66f4\u4f18\u7684\u90a3\u8def\u5206\u6570\u3002<\/p>\n<p>\u5751 2&#xff1a;Rerank \u8d85\u65f6\u62d6\u57ae\u6574\u4f53\u5ef6\u8fdf\u3002 \u91cd\u6392\u670d\u52a1\u5076\u5c14\u6296\u52a8 5 \u79d2\u3002\u4fee\u590d&#xff1a;\u7ed9 rerank \u8bbe\u7f6e\u72ec\u7acb\u8d85\u65f6&#xff0c;\u8d85\u65f6\u5373\u964d\u7ea7\u2014\u2014\u4efb\u4f55\u53ef\u9009\u73af\u8282\u7684\u6545\u969c\u90fd\u4e0d\u5141\u8bb8\u5347\u7ea7\u4e3a\u5fc5\u9009\u73af\u8282\u7684\u5ef6\u8fdf\u3002<\/p>\n<p>\u5751 3&#xff1a;\u7f13\u5b58\u6bd2\u5316\u3002 \u8c03\u6574\u4e86\u77e5\u8bc6\u5e93\u540e\u65e7\u7f13\u5b58\u8fd8\u5728\u8fd4\u56de\u8fc7\u671f\u7b54\u6848\u3002\u4fee\u590d&#xff1a;\u6587\u6863\u53d8\u66f4\u65f6\u5931\u6548\u76f8\u5173\u7f13\u5b58&#xff1b;\u8c03\u8bd5\u6a21\u5f0f\u5f3a\u5236\u7ed5\u8fc7\u7f13\u5b58\u3002<\/p>\n<hr \/>\n<h3>\u5199\u5728\u6700\u540e<\/h3>\n<p>\u67e5\u8be2\u5f15\u64ce\u7684\u8bbe\u8ba1\u54f2\u5b66\u53ef\u4ee5\u603b\u7ed3\u6210\u4e09\u53e5\u8bdd&#xff1a;<\/p>\n<li>\u878d\u5408\u7528\u6392\u540d&#xff0c;\u4e0d\u7528\u5206\u6570\u2014\u2014RRF \u514d\u75ab\u91cf\u7eb2&#xff1b;<\/li>\n<li>\u589e\u5f3a\u8981\u53ef\u964d\u7ea7\u2014\u2014Rerank\u3001\u8def\u7531\u3001\u62a4\u680f\u5168\u90e8\u53ef\u9009&#xff0c;\u6302\u4e86\u4e0d\u963b\u585e&#xff1b;<\/li>\n<li>\u7f13\u5b58\u6709\u7eaa\u5f8b\u2014\u2014\u62d2\u7b54\u4e0d\u7f13\u5b58&#xff0c;\u53d8\u66f4\u5fc5\u5931\u6548\u3002<\/li>\n<p>\u4e0b\u4e00\u7bc7\u56de\u7b54\u4e00\u4e2a\u7075\u9b42\u62f7\u95ee&#xff1a;\u4f60\u8bf4\u4f60\u7684\u65b9\u6848\u597d&#xff0c;\u8bc1\u636e\u5462&#xff1f;\u2014\u2014Golden Set \u8bc4\u6d4b\u4f53\u7cfb\u3002<\/p>\n<p>\u4f60\u7684\u68c0\u7d22\u7528\u4e86\u51e0\u8def\u53ec\u56de&#xff1f;RRF \u8fd8\u662f\u52a0\u6743&#xff1f;\u8bc4\u8bba\u533a\u8fc7\u8fc7\u62db\u3002<\/p>\n<hr \/>\n<p>\u672c\u6587\u4e3a\u300a\u624b\u64b8\u4e00\u4e2a\u751f\u4ea7\u7ea7 RAG&#xff1a;EasyRAG \u5b9e\u6218\u7cfb\u5217\u300b\u7b2c 6 \u7bc7\u3002\u4e0a\u4e00\u7bc7&#xff1a;\u4e09\u5c42\u9632\u5e7b\u89c9\u62a4\u680f &#xff5c; \u4e0b\u4e00\u7bc7&#xff1a;Golden Set \u8bc4\u6d4b<\/p>\n<hr \/>\n<p>\u5f00\u6e90\u4ed3\u5e93&#xff1a;haibingzhao\/easyrag \u2014\u2014 \u6b22\u8fce Star\u3001Fork\u3001\u63d0 Issue \u548c PR\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u9605\u8bfb&#xff08;30 \u79d2\u901f\u89c8&#xff09; EasyRAG \u7684 QueryEngine \u652f\u6301 7 \u79cd\u67e5\u8be2\u6a21\u5f0f&#xff1a;Naive \/ Local \/ Global \/ Hybrid \/ Mix \/ Structure \/ Bypass\u591a\u8def\u53ec\u56de\u7528 RRF&#xff08;Reciprocal Rank Fusion&#xff09;\u878d\u5408&#xff1a;\u53ea\u770b\u6392\u540d\u4e0d\u770b\u5206\u6570&#xff0c;\u5929\u7136\u514d\u75ab\\&#8221;\u4e0d\u540c\u6765\u6e90\u5206\u6570\u91cf\u7ea7\u4e0d\u540c\\&#8221;\u7684\u95ee\u9898Rerank \u662f\u53ef\u9009\u589e\u5f3a&#xff1a;\u8c03\u7528\u5931<\/p>\n","protected":false},"author":2,"featured_media":103594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[206,50],"topic":[],"class_list":["post-103596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-rust","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/103596.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5feb\u901f\u9605\u8bfb&#xff08;30 \u79d2\u901f\u89c8&#xff09; EasyRAG \u7684 QueryEngine \u652f\u6301 7 \u79cd\u67e5\u8be2\u6a21\u5f0f&#xff1a;Naive \/ Local \/ Global \/ Hybrid \/ Mix \/ Structure \/ Bypass\u591a\u8def\u53ec\u56de\u7528 RRF&#xff08;Reciprocal Rank Fusion&#xff09;\u878d\u5408&#xff1a;\u53ea\u770b\u6392\u540d\u4e0d\u770b\u5206\u6570&#xff0c;\u5929\u7136\u514d\u75ab&quot;\u4e0d\u540c\u6765\u6e90\u5206\u6570\u91cf\u7ea7\u4e0d\u540c&quot;\u7684\u95ee\u9898Rerank \u662f\u53ef\u9009\u589e\u5f3a&#xff1a;\u8c03\u7528\u5931\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/103596.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-10T18:49:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184937-6aa2fbc1c0ac4.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103596.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/103596.html\",\"name\":\"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-10T18:49:41+00:00\",\"dateModified\":\"2026-09-10T18:49:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/103596.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/103596.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103596.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/103596.html","og_locale":"zh_CN","og_type":"article","og_title":"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5feb\u901f\u9605\u8bfb&#xff08;30 \u79d2\u901f\u89c8&#xff09; EasyRAG \u7684 QueryEngine \u652f\u6301 7 \u79cd\u67e5\u8be2\u6a21\u5f0f&#xff1a;Naive \/ Local \/ Global \/ Hybrid \/ Mix \/ Structure \/ Bypass\u591a\u8def\u53ec\u56de\u7528 RRF&#xff08;Reciprocal Rank Fusion&#xff09;\u878d\u5408&#xff1a;\u53ea\u770b\u6392\u540d\u4e0d\u770b\u5206\u6570&#xff0c;\u5929\u7136\u514d\u75ab\"\u4e0d\u540c\u6765\u6e90\u5206\u6570\u91cf\u7ea7\u4e0d\u540c\"\u7684\u95ee\u9898Rerank \u662f\u53ef\u9009\u589e\u5f3a&#xff1a;\u8c03\u7528\u5931","og_url":"https:\/\/www.wsisp.com\/helps\/103596.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-10T18:49:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184937-6aa2fbc1c0ac4.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/103596.html","url":"https:\/\/www.wsisp.com\/helps\/103596.html","name":"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-10T18:49:41+00:00","dateModified":"2026-09-10T18:49:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/103596.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/103596.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/103596.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"7 \u79cd\u68c0\u7d22\u6a21\u5f0f + RRF \u878d\u5408 + Rerank\uff1a\u4e00\u4e2a\u67e5\u8be2\u5f15\u64ce\u7684\u5b8c\u6574\u8bbe\u8ba1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=103596"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103596\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/103594"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=103596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=103596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=103596"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=103596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}