{"id":94313,"date":"2026-08-14T09:10:29","date_gmt":"2026-08-14T01:10:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/94313.html"},"modified":"2026-08-14T09:10:29","modified_gmt":"2026-08-14T01:10:29","slug":"%e6%8b%86%e8%a7%a3rag%e5%9c%a8%e7%ba%bf%e5%b7%a5%e4%bd%9c%e6%b5%81%e7%a8%8b%ef%bc%9a%e7%94%a8%e6%88%b7%e8%be%93%e5%85%a5%e4%b8%80%e5%8f%a5%e8%af%9d%ef%bc%8c%e7%b3%bb%e7%bb%9f%e8%83%8c%e5%90%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/94313.html","title":{"rendered":"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48"},"content":{"rendered":"<h2>\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd&#xff0c;\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48<\/h2>\n<p>\u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u80fd\u529b\u6709\u76ee\u5171\u7779&#xff0c;\u4f46\u5b83\u4eec\u6709\u4e00\u4e2a\u5c34\u5c2c\u7684\u77ed\u677f&#xff1a;\u77e5\u8bc6\u505c\u7559\u5728\u8bad\u7ec3\u622a\u6b62\u65e5\u671f\u3002\u4f60\u95ee\u5b83\u6628\u5929\u7684\u65b0\u95fb&#xff0c;\u5b83\u4e0d\u77e5\u9053&#xff1b;\u4f60\u95ee\u5b83\u516c\u53f8\u5185\u90e8\u7684\u4ea7\u54c1\u624b\u518c&#xff0c;\u5b83\u66f4\u4e0d\u77e5\u9053\u3002RAG&#xff08;Retrieval-Augmented Generation&#xff0c;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u800c\u751f\u2014\u2014\u5728\u6a21\u578b\u751f\u6210\u7b54\u6848\u4e4b\u524d&#xff0c;\u5148\u4ece\u5916\u90e8\u77e5\u8bc6\u5e93\u4e2d\u201c\u7ffb\u4e66\u201d\u627e\u5230\u76f8\u5173\u8d44\u6599&#xff0c;\u518d\u8ba9\u6a21\u578b\u57fa\u4e8e\u8d44\u6599\u4f5c\u7b54\u3002<\/p>\n<p>\u542c\u8d77\u6765\u5f88\u7b80\u5355&#xff1a;\u68c0\u7d22&#xff0c;\u7136\u540e\u751f\u6210&#xff0c;\u4e24\u6b65\u8d70\u3002\u4f46\u5b9e\u9645\u4e0a&#xff0c;\u4e00\u4e2a\u751f\u4ea7\u7ea7\u7684RAG\u7cfb\u7edf\u5728\u6536\u5230\u7528\u6237\u95ee\u9898\u4e4b\u540e&#xff0c;\u8981\u7ecf\u5386\u4e00\u6574\u5957\u7cbe\u5bc6\u7684\u6d41\u6c34\u7ebf\u5904\u7406\u3002\u628a\u8fd9\u6761\u94fe\u8def\u62c6\u5f00\u6765\u770b&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u6709\u503c\u5f97\u63a8\u6572\u7684\u5de5\u7a0b\u7ec6\u8282\u3002<\/p>\n<hr \/>\n<h3>\u6574\u4f53\u94fe\u8def\u4e00\u89c8<\/h3>\n<p>\u4e00\u4e2a\u5178\u578b\u7684RAG\u5728\u7ebf\u6d41\u7a0b&#xff0c;\u4ece\u7528\u6237\u8f93\u5165\u5230\u7cfb\u7edf\u8f93\u51fa&#xff0c;\u4f9d\u6b21\u7ecf\u8fc7\u516d\u4e2a\u8282\u70b9&#xff1a;<\/p>\n<p>#mermaid-svg-aepu0VKa3xugV8PP{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-aepu0VKa3xugV8PP .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-aepu0VKa3xugV8PP .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-aepu0VKa3xugV8PP .error-icon{fill:#552222;}#mermaid-svg-aepu0VKa3xugV8PP .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-aepu0VKa3xugV8PP .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-aepu0VKa3xugV8PP .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-aepu0VKa3xugV8PP .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-aepu0VKa3xugV8PP .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-aepu0VKa3xugV8PP .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-aepu0VKa3xugV8PP .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-aepu0VKa3xugV8PP .marker{fill:#333333;stroke:#333333;}#mermaid-svg-aepu0VKa3xugV8PP .marker.cross{stroke:#333333;}#mermaid-svg-aepu0VKa3xugV8PP svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-aepu0VKa3xugV8PP p{margin:0;}#mermaid-svg-aepu0VKa3xugV8PP .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-aepu0VKa3xugV8PP .cluster-label text{fill:#333;}#mermaid-svg-aepu0VKa3xugV8PP .cluster-label span{color:#333;}#mermaid-svg-aepu0VKa3xugV8PP .cluster-label span p{background-color:transparent;}#mermaid-svg-aepu0VKa3xugV8PP .label text,#mermaid-svg-aepu0VKa3xugV8PP span{fill:#333;color:#333;}#mermaid-svg-aepu0VKa3xugV8PP .node rect,#mermaid-svg-aepu0VKa3xugV8PP .node circle,#mermaid-svg-aepu0VKa3xugV8PP .node ellipse,#mermaid-svg-aepu0VKa3xugV8PP .node polygon,#mermaid-svg-aepu0VKa3xugV8PP .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-aepu0VKa3xugV8PP .rough-node .label text,#mermaid-svg-aepu0VKa3xugV8PP .node .label text,#mermaid-svg-aepu0VKa3xugV8PP .image-shape .label,#mermaid-svg-aepu0VKa3xugV8PP .icon-shape .label{text-anchor:middle;}#mermaid-svg-aepu0VKa3xugV8PP .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-aepu0VKa3xugV8PP .rough-node .label,#mermaid-svg-aepu0VKa3xugV8PP .node .label,#mermaid-svg-aepu0VKa3xugV8PP .image-shape .label,#mermaid-svg-aepu0VKa3xugV8PP .icon-shape .label{text-align:center;}#mermaid-svg-aepu0VKa3xugV8PP .node.clickable{cursor:pointer;}#mermaid-svg-aepu0VKa3xugV8PP .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-aepu0VKa3xugV8PP .arrowheadPath{fill:#333333;}#mermaid-svg-aepu0VKa3xugV8PP .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-aepu0VKa3xugV8PP .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-aepu0VKa3xugV8PP .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-aepu0VKa3xugV8PP .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-aepu0VKa3xugV8PP .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-aepu0VKa3xugV8PP .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-aepu0VKa3xugV8PP .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-aepu0VKa3xugV8PP .cluster text{fill:#333;}#mermaid-svg-aepu0VKa3xugV8PP .cluster span{color:#333;}#mermaid-svg-aepu0VKa3xugV8PP div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-aepu0VKa3xugV8PP .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-aepu0VKa3xugV8PP rect.text{fill:none;stroke-width:0;}#mermaid-svg-aepu0VKa3xugV8PP .icon-shape,#mermaid-svg-aepu0VKa3xugV8PP .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-aepu0VKa3xugV8PP .icon-shape p,#mermaid-svg-aepu0VKa3xugV8PP .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-aepu0VKa3xugV8PP .icon-shape .label rect,#mermaid-svg-aepu0VKa3xugV8PP .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-aepu0VKa3xugV8PP .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-aepu0VKa3xugV8PP .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-aepu0VKa3xugV8PP :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7528\u6237\u539f\u59cbQuery<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2460 Query\u9884\u5904\u7406<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2461 Query\u5411\u91cf\u5316<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2462 \u591a\u8def\u53ec\u56de<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2463 Rerank\u7cbe\u6392<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2464 Prompt\u62fc\u88c5<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u2465 LLM\u751f\u6210 &#043; \u6eaf\u6e90<\/p>\n<p><\/span><\/p>\n<p>\u4e0b\u9762\u6309\u987a\u5e8f\u9010\u4e00\u5c55\u5f00\u3002<\/p>\n<hr \/>\n<h3>\u5206\u6b65\u62c6\u89e3&#xff1a;\u516d\u5927\u73af\u8282<\/h3>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;Query\u9884\u5904\u7406<\/h4>\n<p>\u7528\u6237\u4e0d\u4f1a\u6309\u7167\u68c0\u7d22\u7cfb\u7edf\u7684\u559c\u597d\u6765\u63d0\u95ee\u3002\u771f\u5b9e\u573a\u666f\u4e2d&#xff0c;\u7528\u6237\u8f93\u5165\u5f80\u5f80\u662f\u53e3\u8bed\u5316\u7684\u3001\u5e26\u7740\u6307\u4ee3\u548c\u7701\u7565\u7684\u3002\u6bd4\u5982\u201c\u4e0a\u6b21\u8bf4\u7684\u90a3\u4e2a\u65b9\u6848\u600e\u4e48\u6837\u4e86\u201d\u2014\u2014\u79bb\u5f00\u5bf9\u8bdd\u4e0a\u4e0b\u6587&#xff0c;\u8fd9\u53e5\u8bdd\u5bf9\u68c0\u7d22\u7cfb\u7edf\u6765\u8bf4\u6beb\u65e0\u610f\u4e49\u3002\u53c8\u6216\u8005\u7528\u6237\u7528\u8bcd\u4e60\u60ef\u548c\u77e5\u8bc6\u5e93\u6587\u6863\u7684\u7528\u8bcd\u5dee\u5f02\u5f88\u5927&#xff0c;\u76f4\u63a5\u62ff\u53bb\u68c0\u7d22&#xff0c;\u547d\u4e2d\u7387\u60e8\u6de1\u3002<\/p>\n<p>Query\u9884\u5904\u7406\u7684\u6838\u5fc3\u601d\u8def\u662f&#xff1a;\u5728\u68c0\u7d22\u4e4b\u524d&#xff0c;\u5148\u628a\u7528\u6237\u7684\u95ee\u9898\u201c\u7ffb\u8bd1\u201d\u6210\u9002\u5408\u68c0\u7d22\u7684\u5f62\u5f0f\u3002\u5e38\u89c1\u7b56\u7565\u6709\u4e09\u79cd&#xff1a;<\/p>\n<p>\u57fa\u7840\u6539\u5199&#xff0c;\u7528\u4e00\u4e2a\u5c0f\u6a21\u578b\u5c06\u53e3\u8bed\u5316\u95ee\u9898\u8f6c\u6210\u72ec\u7acb\u3001\u5b8c\u6574\u7684\u68c0\u7d22\u8bed\u53e5&#xff0c;\u8865\u5168\u7701\u7565\u4fe1\u606f\u3001\u6d88\u89e3\u6307\u4ee3\u3001\u7edf\u4e00\u672f\u8bed\u3002\u8fd9\u4e00\u6b65\u5ef6\u8fdf\u5f88\u4f4e&#xff0c;\u51e0\u5341\u6beb\u79d2\u5c31\u80fd\u5b8c\u6210\u3002<\/p>\n<p>HyDE&#xff08;Hypothetical Document Embeddings&#xff09; \u7684\u601d\u8def\u66f4\u5de7\u5999&#xff1a;\u4e0d\u8ba9LLM\u6539\u5199\u95ee\u9898&#xff0c;\u800c\u662f\u8ba9\u5b83\u5148\u201c\u5047\u8bbe\u6027\u5730\u201d\u5199\u4e00\u7bc7\u7b54\u6848&#xff0c;\u518d\u62ff\u8fd9\u7bc7\u5047\u8bbe\u7b54\u6848\u7684\u5411\u91cf\u53bb\u505a\u68c0\u7d22\u3002\u80cc\u540e\u7684\u903b\u8f91\u662f&#xff0c;\u77ed\u95ee\u9898\u548c\u957f\u6587\u6863\u4e4b\u95f4\u5b58\u5728\u4e25\u91cd\u7684\u6a21\u6001\u4e0d\u5339\u914d&#xff0c;\u4f46\u5047\u8bbe\u7b54\u6848\u548c\u771f\u5b9e\u6587\u6863\u5728\u6587\u672c\u5f62\u6001\u4e0a\u5929\u7136\u63a5\u8fd1&#xff0c;\u8bed\u4e49\u7a7a\u95f4\u91cc\u7684\u5339\u914d\u6548\u679c\u66f4\u597d\u3002\u8fd9\u6709\u70b9\u50cf\u201c\u7528\u7b54\u6848\u53bb\u627e\u7b54\u6848\u201d\u3002<\/p>\n<p>\u591a\u89d2\u5ea6\u6269\u5199\u5219\u8d70\u8986\u76d6\u8def\u7ebf&#xff0c;\u628a\u540c\u4e00\u4e2a\u95ee\u9898\u6269\u5c55\u6210\u4e09\u5230\u4e94\u79cd\u4e0d\u540c\u8868\u8ff0&#xff0c;\u5206\u522b\u68c0\u7d22\u540e\u5408\u5e76\u7ed3\u679c&#xff0c;\u9002\u5408\u95ee\u9898\u672c\u8eab\u6bd4\u8f83\u5bbd\u6cdb\u3001\u53ef\u4ee5\u4ece\u591a\u4e2a\u7ef4\u5ea6\u56de\u7b54\u7684\u573a\u666f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814010956-6a7e6ae432e6a.png\" alt=\"RAG Query\u9884\u5904\u7406\u7684\u4e09\u79cd\u7b56\u7565\u5bf9\u6bd4\uff1a\u57fa\u7840\u6539\u5199\u3001HyDE\u3001\u591a\u89d2\u5ea6\u6269\u5199\" \/><\/p>\n<hr \/>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;Query\u5411\u91cf\u5316<\/h4>\n<p>Query\u6539\u5199\u5b8c\u6bd5&#xff0c;\u9700\u8981\u7528Embedding\u6a21\u578b\u628a\u5b83\u8f6c\u4e3a\u5411\u91cf&#xff0c;\u624d\u80fd\u5728\u5411\u91cf\u5e93\u91cc\u505a\u76f8\u4f3c\u5ea6\u641c\u7d22\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u672c\u8eab\u4e0d\u590d\u6742&#xff0c;\u4f46\u6709\u4e00\u4e2a\u5bb9\u6613\u88ab\u5ffd\u89c6\u7684\u786c\u6027\u7ea6\u675f&#xff1a;\u68c0\u7d22\u65f6\u5fc5\u987b\u7528\u548c\u5efa\u5e93\u65f6\u5b8c\u5168\u76f8\u540c\u7684Embedding\u6a21\u578b\u3002\u539f\u56e0\u5f88\u7b80\u5355&#xff0c;\u4e0d\u540cEmbedding\u6a21\u578b\u7684\u5411\u91cf\u7a7a\u95f4\u662f\u5404\u81ea\u72ec\u7acb\u7684\u3002\u6a21\u578bA\u7684\u5750\u6807\u7cfb\u91cc&#xff0c;\u201c\u82f9\u679c\u624b\u673a\u201d\u548c\u201ciPhone\u201d\u53ef\u80fd\u662f\u8fd1\u90bb&#xff1b;\u5728\u6a21\u578bB\u7684\u5750\u6807\u7cfb\u91cc&#xff0c;\u4e24\u8005\u53ef\u80fd\u76f8\u8ddd\u751a\u8fdc\u3002\u66f4\u4e0d\u7528\u8bf4\u8f93\u51fa\u7ef4\u5ea6\u90fd\u53ef\u80fd\u4e0d\u4e00\u6837\u2014\u20141024\u7ef4\u548c1536\u7ef4\u4e4b\u95f4\u6839\u672c\u6ca1\u6709\u8ddd\u79bb\u53ef\u7b97\u3002<\/p>\n<p>\u5de5\u7a0b\u4e0a\u7684\u63a8\u8bba\u662f&#xff1a;\u4e00\u65e6\u51b3\u5b9a\u6362Embedding\u6a21\u578b&#xff0c;\u6574\u4e2a\u77e5\u8bc6\u5e93\u7684\u5411\u91cf\u7d22\u5f15\u5fc5\u987b\u91cd\u5efa\u3002\u8001\u5411\u91cf\u548c\u65b0\u67e5\u8be2\u4e0d\u5728\u540c\u4e00\u5957\u5750\u6807\u7cfb\u91cc&#xff0c;\u4efb\u4f55\u76f8\u4f3c\u5ea6\u8ba1\u7b97\u90fd\u6ca1\u6709\u610f\u4e49\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814011001-6a7e6ae91c248.png\" alt=\"Embedding\u6a21\u578b\u4e00\u81f4\u6027\uff1a\u6a21\u578bA\u4e0e\u6a21\u578bB\u5728\u4e0d\u540c\u5411\u91cf\u7a7a\u95f4\uff0c\u68c0\u7d22\u5fc5\u987b\u7528\u540c\u4e00\u4e2aEmbedding\u6a21\u578b\" \/><\/p>\n<hr \/>\n<h4>\u7b2c\u4e09\u6b65&#xff1a;\u591a\u8def\u53ec\u56de<\/h4>\n<p>\u62ff\u5230Query\u5411\u91cf\u540e&#xff0c;\u5728\u5411\u91cf\u6570\u636e\u5e93\u91cc\u505a\u8fd1\u4f3c\u6700\u8fd1\u90bb\u641c\u7d22&#xff08;ANN&#xff09;&#xff0c;\u6309\u4f59\u5f26\u76f8\u4f3c\u5ea6\u62c9\u56deTop-K\u4e2a\u5019\u9009\u6587\u6863\u3002\u767e\u4e07\u91cf\u7ea7\u7684\u5e93&#xff0c;\u51e0\u5341\u6beb\u79d2\u5c31\u80fd\u51fa\u7ed3\u679c\u3002<\/p>\n<p>\u4f46\u5355\u9760\u5411\u91cf\u68c0\u7d22\u4e0d\u591f\u3002\u5411\u91cf\u68c0\u7d22\u7684\u4f18\u52bf\u662f\u8bed\u4e49\u5339\u914d&#xff0c;\u540c\u4e49\u6539\u5199\u3001\u8fd1\u4e49\u8868\u8fbe\u90fd\u80fd\u515c\u4f4f\u3002\u77ed\u677f\u4e5f\u5f88\u660e\u663e&#xff1a;\u7cbe\u786e\u5173\u952e\u8bcd&#xff08;\u4ea7\u54c1\u578b\u53f7\u3001\u9519\u8bef\u7801\u3001\u4e13\u6709\u540d\u8bcd&#xff09;\u7684\u8bc6\u522b\u80fd\u529b\u5f31&#xff0c;\u62fc\u5199\u504f\u5dee\u4e5f\u4f1a\u628a\u5411\u91cf\u5e26\u504f\u3002<\/p>\n<p>\u6240\u4ee5\u5de5\u7a0b\u4e0a\u51e0\u4e4e\u90fd\u662f\u53cc\u8def\u5e76\u884c\u2014\u2014\u518d\u52a0\u4e00\u8defBM25\u5173\u952e\u8bcd\u68c0\u7d22\u3002BM25\u57fa\u4e8e\u8bcd\u9891\u7edf\u8ba1&#xff0c;\u5bf9\u7cbe\u786e\u672f\u8bed\u7684\u5339\u914d\u80fd\u529b\u662f\u5411\u91cf\u68c0\u7d22\u65e0\u6cd5\u66ff\u4ee3\u7684\u3002\u7528\u6237\u95ee\u201cLSTM\u548cTransformer\u7684\u533a\u522b\u201d&#xff0c;\u5411\u91cf\u68c0\u7d22\u80fd\u635e\u5230\u8ba8\u8bba\u5e8f\u5217\u6a21\u578b\u5bf9\u6bd4\u7684\u6bb5\u843d&#xff0c;BM25\u80fd\u9501\u5b9a\u540c\u65f6\u51fa\u73b0\u201cLSTM\u201d\u548c\u201cTransformer\u201d\u8fd9\u4e24\u4e2a\u8bcd\u7684\u7247\u6bb5&#xff0c;\u4e24\u8def\u4e92\u8865\u3002<\/p>\n<p>\u4e24\u8def\u7ed3\u679c\u600e\u4e48\u5408\u5e76&#xff1f;\u4e1a\u754c\u666e\u904d\u7528RRF&#xff08;Reciprocal Rank Fusion&#xff09;&#xff1a;<\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">score&#061;\u22111k&#043;rankiscore &#061; \\\\sum \\\\frac{1}{k &#043; rank_i}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4306em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">scor<\/span><span class=\"mord mathnormal\">e<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.1574em;vertical-align: -0.836em\"><\/span><span class=\"mop op-symbol large-op\" style=\"position: relative;top: 0em\">\u2211<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.0315em\">k<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">&#043;<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">r<\/span><span class=\"mord mathnormal\">an<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.0315em\">k<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3117em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.0315em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">i<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.836em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>k\u901a\u5e38\u53d660\u3002RRF\u53ea\u770b\u6392\u540d\u4e0d\u770b\u7edd\u5bf9\u5206\u503c&#xff0c;\u5929\u7136\u514d\u75ab\u4e0d\u540c\u6253\u5206\u5c3a\u5ea6\u7684\u5f71\u54cd&#xff0c;\u7a33\u5b9a\u4e14\u65e0\u9700\u8c03\u53c2\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814011005-6a7e6aedaac00.png\" alt=\"\u591a\u8def\u53ec\u56de\uff1a\u5411\u91cf\u68c0\u7d22 + BM25\u5173\u952e\u8bcd\u68c0\u7d22 \u2192 RRF\u5408\u5e76 \u2192 Top-K\u5019\u9009\u6587\u6863\" \/><\/p>\n<hr \/>\n<h4>\u7b2c\u56db\u6b65&#xff1a;Rerank\u7cbe\u6392<\/h4>\n<p>\u591a\u8def\u53ec\u56de\u5408\u5e76\u540e&#xff0c;\u5019\u9009\u96c6\u5408\u53ef\u80fd\u6709\u51e0\u5341\u6761\u3002\u663e\u7136\u4e0d\u53ef\u80fd\u6761\u6761\u90fd\u9ad8\u8d28\u91cf&#xff0c;\u566a\u97f3\u662f\u514d\u4e0d\u4e86\u7684\u3002Rerank\u7684\u4f5c\u7528\u5c31\u662f\u4ece\u4e2d\u7b5b\u51fa\u6700\u7cbe\u534e\u7684\u90a3\u51e0\u6761\u3002<\/p>\n<p>\u8fd9\u91cc\u6d89\u53ca\u4e24\u79cd\u6a21\u578b\u67b6\u6784\u7684\u533a\u522b\u3002\u5411\u91cf\u68c0\u7d22\u7528\u7684\u662fBi-Encoder&#xff1a;Query\u548cDocument\u5404\u81ea\u72ec\u7acb\u7f16\u7801&#xff0c;\u7136\u540e\u7b97\u5411\u91cf\u76f8\u4f3c\u5ea6&#xff0c;\u901f\u5ea6\u5feb\u4f46Query\u548cDocument\u5728\u7f16\u7801\u65f6\u6ca1\u6709\u4ea4\u4e92\u3002Rerank\u7528\u7684\u662fCross-Encoder&#xff1a;\u628aQuery\u548c\u6bcf\u4e2a\u5019\u9009Document\u62fc\u5728\u4e00\u8d77\u9001\u5165\u6a21\u578b&#xff0c;\u901a\u8fc7\u6ce8\u610f\u529b\u673a\u5236\u8ba9\u4e24\u8005\u5145\u5206\u4ea4\u53c9&#xff0c;\u8f93\u51fa\u4e00\u4e2a\u7cbe\u7ec6\u7684\u76f8\u5173\u6027\u5206\u6570\u3002<\/p>\n<p>\u90a3\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u62ffCross-Encoder\u626b\u5168\u5e93&#xff1f;\u56e0\u4e3a\u592a\u6162\u4e86\u3002\u5bf9\u767e\u4e07\u7ea7\u6587\u6863\u9010\u4e00\u7b97\u5206&#xff0c;\u5ef6\u8fdf\u5b8c\u5168\u4e0d\u53ef\u63a5\u53d7\u3002\u6240\u4ee5\u5de5\u7a0b\u4e0a\u7684\u4e24\u9636\u6bb5\u7b56\u7565\u662f&#xff1a;Bi-Encoder\u7c97\u6392\u628a\u5019\u9009\u4ece\u767e\u4e07\u7f29\u5230\u51e0\u5341&#xff0c;Cross-Encoder\u518d\u4ece\u51e0\u5341\u91cc\u7cbe\u6311\u51fa3\u52305\u6761\u3002\u7cbe\u6392\u591a\u82b1\u51e0\u767e\u6beb\u79d2&#xff0c;\u4f46\u68c0\u7d22\u8d28\u91cf\u63d0\u5347\u663e\u8457\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814011009-6a7e6af15883a.png\" alt=\"Rerank\u4e24\u9636\u6bb5\u7cbe\u6392\uff1aBi-Encoder\u7c97\u6392\uff08\u5927\u91cf\u2192\u6570\u5341\uff09\u2192 Cross-Encoder\u7cbe\u6392\uff08\u6570\u5341\u21923-5\u6761\uff09\u2192 \u9ad8\u8d28\u91cf\u5019\u9009\" \/><\/p>\n<hr \/>\n<h4>\u7b2c\u4e94\u6b65&#xff1a;Prompt\u62fc\u88c5<\/h4>\n<p>\u7cbe\u6392\u540e\u7684\u7247\u6bb5\u5230\u624b&#xff0c;\u63a5\u4e0b\u6765\u628a\u5b83\u4eec\u548c\u7528\u6237\u95ee\u9898\u7ec4\u88c5\u6210Prompt\u3002\u4e00\u4e2a\u5178\u578b\u7684\u6a21\u677f\u5927\u6982\u662f\u8fd9\u6837\u7684&#xff1a;<\/p>\n<p>\u4f60\u662f\u4e00\u4e2a\u4e13\u4e1a\u52a9\u624b&#xff0c;\u8bf7\u6839\u636e\u4ee5\u4e0b\u53c2\u8003\u8d44\u6599\u56de\u7b54\u7528\u6237\u7684\u95ee\u9898\u3002<br \/>\n\u5982\u679c\u53c2\u8003\u8d44\u6599\u4e2d\u6ca1\u6709\u76f8\u5173\u4fe1\u606f&#xff0c;\u8bf7\u56de\u7b54\u300c\u6839\u636e\u73b0\u6709\u8d44\u6599\u65e0\u6cd5\u56de\u7b54\u300d&#xff0c;\u4e0d\u8981\u81ea\u884c\u731c\u6d4b\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599&#xff1a;<br \/>\n[1] {chunk_1}<br \/>\n[2] {chunk_2}<br \/>\n[3] {chunk_3}<\/p>\n<p>\u7528\u6237\u95ee\u9898&#xff1a;{user_query}<\/p>\n<p>\u6a21\u677f\u770b\u7740\u7b80\u5355&#xff0c;\u6bcf\u6761\u6307\u4ee4\u5fc3\u601d\u90fd\u5f88\u660e\u786e\u3002\u201c\u6839\u636e\u53c2\u8003\u8d44\u6599\u56de\u7b54\u201d\u662f\u5728\u7ed9\u6a21\u578b\u5212\u8fb9\u754c&#xff0c;\u6291\u5236\u5b83\u51ed\u53c2\u6570\u8bb0\u5fc6\u81ea\u7531\u53d1\u6325\u7684\u51b2\u52a8\u2014\u2014\u5927\u6a21\u578b\u5929\u751f\u559c\u6b22\u5e2e\u5fd9&#xff0c;\u8d44\u6599\u91cc\u6ca1\u6709\u5b83\u4e5f\u53ef\u80fd\u81ea\u5df1\u7f16\u3002\u201c\u4e0d\u77e5\u9053\u5c31\u8bf4\u4e0d\u77e5\u9053\u201d\u5219\u8fdb\u4e00\u6b65\u5835\u4f4f\u4fe1\u606f\u4e0d\u8db3\u65f6\u5f3a\u884c\u8865\u5168\u7684\u53e3\u5b50\u3002\u5f15\u7528\u7f16\u53f7\u7684\u5b58\u5728&#xff0c;\u662f\u4e3a\u4e86\u540e\u7eed\u7b54\u6848\u91cc\u80fd\u6807\u6ce8\u6765\u6e90\u3002<\/p>\n<p>Prompt\u8bbe\u8ba1\u662fRAG\u7cfb\u7edf\u4e2d\u6027\u4ef7\u6bd4\u6700\u9ad8\u7684\u4f18\u5316\u70b9\u4e4b\u4e00&#xff0c;\u6539\u51e0\u884c\u5b57\u5c31\u53ef\u80fd\u663e\u8457\u5f71\u54cd\u7b54\u6848\u8d28\u91cf&#xff0c;\u6210\u672c\u51e0\u4e4e\u4e3a\u96f6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814011015-6a7e6af72969f.png\" alt=\"Prompt\u4e09\u8981\u7d20\u7ec4\u88c5\uff1a\u7cfb\u7edf\u6307\u4ee4 + \u53c2\u8003\u8d44\u6599 + \u7528\u6237\u95ee\u9898 \u2192 \u7b54\u6848\u6eaf\u6e90\" \/><\/p>\n<hr \/>\n<h4>\u7b2c\u516d\u6b65&#xff1a;LLM\u751f\u6210\u4e0e\u6eaf\u6e90<\/h4>\n<p>\u5927\u6a21\u578b\u62ff\u5230Prompt\u540e\u57fa\u4e8e\u53c2\u8003\u8d44\u6599\u751f\u6210\u7b54\u6848\u3002\u5230\u8fd9\u4e00\u6b65&#xff0c;\u68c0\u7d22\u589e\u5f3a\u7684\u6838\u5fc3\u94fe\u8def\u57fa\u672c\u8d70\u5b8c\u3002<\/p>\n<p>\u4f46\u771f\u6b63\u4e25\u8c28\u7684\u7cfb\u7edf\u8fd8\u4f1a\u8981\u6c42\u6a21\u578b\u5728\u7b54\u6848\u4e2d\u6807\u660e\u5f15\u7528\u6765\u6e90&#xff0c;\u6bd4\u5982\u201c\u6839\u636e\u8d44\u6599[1]\u2026\u2026\u201d\u3002\u8fd9\u4e00\u6b65\u7ecf\u5e38\u88ab\u4f4e\u4f30\u3002\u5f88\u591a\u4eba\u89c9\u5f97\u6709\u4e86RAG\u5c31\u4e0d\u4f1a\u6709\u5e7b\u89c9&#xff0c;\u5b9e\u9645\u4e0a\u5927\u6a21\u578b\u62ff\u5230\u8d44\u6599\u540e\u4ecd\u7136\u53ef\u80fd\u8fc7\u5ea6\u63a8\u65ad\u6216\u9009\u62e9\u6027\u89e3\u8bfb\u3002\u6eaf\u6e90\u628a\u201c\u7b54\u6848\u5bf9\u4e0d\u5bf9\u201d\u7684\u6838\u9a8c\u6743\u4ea4\u7ed9\u4e86\u7528\u6237\u2014\u2014\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5f15\u7528\u6807\u8bb0\u56de\u5230\u539f\u59cb\u6587\u6863\u81ea\u884c\u5224\u65ad\u3002<\/p>\n<p>\u6574\u4e2a\u5728\u7ebf\u94fe\u8def\u7684\u8017\u65f6\u5206\u5e03\u5927\u81f4\u662f&#xff1a;Query\u6539\u5199\u51e0\u5341\u6beb\u79d2&#xff0c;\u5411\u91cf\u68c0\u7d22\u51e0\u5341\u6beb\u79d2&#xff0c;Rerank\u51e0\u767e\u6beb\u79d2&#xff0c;Prompt\u62fc\u88c5\u53ef\u5ffd\u7565&#xff0c;\u6a21\u578b\u751f\u62101\u523010\u79d2&#xff08;\u89c6\u8f93\u51fa\u957f\u5ea6\u800c\u5b9a&#xff09;\u3002\u9ad8\u9891Query\u7f13\u5b58\u3001\u5411\u91cf\u68c0\u7d22\u548cBM25\u5e76\u884c\u6267\u884c&#xff0c;\u90fd\u662f\u5e38\u89c1\u7684\u8fdb\u4e00\u6b65\u538b\u7f29\u5ef6\u8fdf\u7684\u624b\u6bb5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814011019-6a7e6afb86c81.png\" alt=\"LLM\u751f\u6210\u4e0e\u6eaf\u6e90\uff1aLLM\u57fa\u4e8e\u8d44\u6599\u751f\u6210\u7b54\u6848 \u2192 \u5f15\u7528\u6807\u8bb0[1] \u2192 \u7528\u6237\u56de\u6eaf\u539f\u59cb\u6587\u6863\u6838\u9a8c\" \/><\/p>\n<hr \/>\n<h3>\u4e0d\u6b62\u4e8e\u7ba1\u9053&#xff1a;RAG\u6b63\u5728\u6f14\u8fdb\u7684\u51e0\u4e2a\u65b9\u5411<\/h3>\n<p>\u4e0a\u8ff0\u516d\u6b65\u6784\u6210\u4e86RAG\u5728\u7ebf\u6d41\u7a0b\u7684\u57fa\u672c\u76d8\u3002\u4f46RAG\u6280\u672f\u672c\u8eab\u8fdc\u672a\u5b9a\u578b&#xff0c;\u5b83\u6b63\u5728\u6cbf\u7740\u51e0\u6761\u4e3b\u7ebf\u6301\u7eed\u6f14\u8fdb\u3002<\/p>\n<p>Agentic RAG\u6253\u7834\u4e86\u4f20\u7edfRAG\u201c\u4e00\u6b21\u68c0\u7d22\u5c31\u5b8c\u4e8b\u201d\u7684\u5047\u8bbe\u3002\u66f4\u667a\u80fd\u7684\u7cfb\u7edf\u4f1a\u5728\u751f\u6210\u8fc7\u7a0b\u4e2d\u52a8\u6001\u5224\u65ad&#xff1a;\u5f53\u524d\u4fe1\u606f\u591f\u4e0d\u591f&#xff1f;\u8981\u4e0d\u8981\u6362\u4e2a\u89d2\u5ea6\u518d\u641c&#xff1f;\u68c0\u7d22\u5230\u7684\u5185\u5bb9\u6709\u6ca1\u6709\u77db\u76fe\u9700\u8981\u6838\u5b9e&#xff1f;RAG\u4ece\u88ab\u52a8\u6267\u884c\u7684\u7ba1\u9053\u53d8\u6210\u4e86\u81ea\u4e3b\u51b3\u7b56\u7684\u5faa\u73af\u3002<\/p>\n<p>GraphRAG\u5c06\u77e5\u8bc6\u56fe\u8c31\u5f15\u5165\u68c0\u7d22\u589e\u5f3a\u3002\u5411\u91cf\u68c0\u7d22\u672c\u8d28\u4e0a\u662f\u201c\u627e\u76f8\u4f3c\u7684\u6587\u672c\u201d&#xff0c;\u4f46\u73b0\u5b9e\u4e2d\u6709\u5927\u91cf\u9700\u8981\u591a\u8df3\u63a8\u7406\u7684\u95ee\u9898\u2014\u2014\u201c\u8fd9\u5bb6\u516c\u53f8CEO\u7684\u6bcd\u6821\u662f\u54ea\u6240\u201d\u7684\u7b54\u6848\u6563\u843d\u5728\u4e0d\u540c\u6587\u6863\u91cc&#xff0c;\u5355\u6b21\u5411\u91cf\u68c0\u7d22\u51e0\u4e4e\u4e0d\u53ef\u80fd\u547d\u4e2d\u3002GraphRAG\u4ece\u6587\u6863\u4e2d\u62bd\u53d6\u5b9e\u4f53\u548c\u5173\u7cfb\u6784\u5efa\u56fe\u8c31&#xff0c;\u8ba9\u68c0\u7d22\u53d8\u6210\u8def\u5f84\u63a8\u7406&#xff0c;\u5927\u5927\u62d3\u5c55\u4e86\u7cfb\u7edf\u5904\u7406\u590d\u6742\u95ee\u9898\u7684\u80fd\u529b\u3002<\/p>\n<p>\u591a\u6a21\u6001RAG\u5219\u5c06\u68c0\u7d22\u8303\u56f4\u4ece\u7eaf\u6587\u672c\u6269\u5c55\u5230\u56fe\u7247\u3001\u8868\u683c\u3001\u97f3\u89c6\u9891\u3002\u4f01\u4e1a\u77e5\u8bc6\u5e93\u91cc\u4ece\u6765\u4e0d\u53ea\u6709\u6587\u5b57\u2014\u2014PDF\u91cc\u7684\u67b6\u6784\u56fe\u3001Excel\u91cc\u7684\u6570\u636e\u8868\u3001\u4f1a\u8bae\u5f55\u97f3\u7684\u6587\u5b57\u7a3f&#xff0c;\u7eaf\u6587\u672cRAG\u5bf9\u8fd9\u90e8\u5206\u5185\u5bb9\u675f\u624b\u65e0\u7b56\u3002\u591a\u6a21\u6001\u5d4c\u5165\u6a21\u578b\u548c\u89c6\u89c9\u8bed\u8a00\u6a21\u578b\u7684\u6210\u719f&#xff0c;\u6b63\u5728\u6253\u5f00\u8fd9\u5757\u4fe1\u606f\u84dd\u6d77\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814011024-6a7e6b00387f0.png\" alt=\"RAG\u6f14\u8fdb\u4e09\u5927\u65b9\u5411\uff1aAgentic RAG\u81ea\u4e3b\u51b3\u7b56\u5faa\u73af \/ GraphRAG\u77e5\u8bc6\u56fe\u8c31\u591a\u8df3\u63a8\u7406 \/ \u591a\u6a21\u6001RAG\u56fe\u6587\u97f3\u89c6\u9891\" \/><\/p>\n<hr \/>\n<h3>\u7ed3\u8bed<\/h3>\n<p>RAG\u5728\u7ebf\u6d41\u7a0b\u8fdc\u4e0d\u6b62\u201c\u68c0\u7d22&#043;\u751f\u6210\u201d\u56db\u4e2a\u5b57\u3002Query\u9884\u5904\u7406\u51b3\u5b9a\u4e86\u8f93\u5165\u8d28\u91cf\u7684\u4e0a\u9650&#xff0c;\u5411\u91cf\u5316\u73af\u8282\u6709\u6a21\u578b\u4e00\u81f4\u6027\u7684\u786c\u7ea6\u675f&#xff0c;\u591a\u8def\u53ec\u56de\u8ba9\u8bed\u4e49\u548c\u5173\u952e\u8bcd\u4e92\u8865&#xff0c;Rerank\u7cbe\u6392\u5b8c\u6210\u4ece\u7c97\u5230\u7ec6\u7684\u7b5b\u9009&#xff0c;Prompt\u62fc\u88c5\u5efa\u7acb\u884c\u4e3a\u8fb9\u754c&#xff0c;\u6eaf\u6e90\u5219\u8ba9\u7b54\u6848\u53ef\u9a8c\u8bc1\u3001\u53ef\u8ffd\u6eaf\u3002\u6bcf\u4e2a\u73af\u8282\u72ec\u7acb\u770b\u4f3c\u4e4e\u90fd\u4e0d\u590d\u6742&#xff0c;\u4f46\u8fde\u5728\u4e00\u8d77&#xff0c;\u7ec6\u8282\u5904\u7684\u53d6\u820d\u51b3\u5b9a\u4e86\u7cfb\u7edf\u7684\u6700\u7ec8\u8868\u73b0\u3002<\/p>\n<p>\u7406\u89e3\u8fd9\u6761\u94fe\u8def\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9&#xff0c;\u662f\u4ece\u201c\u4f1a\u7528RAG\u201d\u8d70\u5411\u201c\u505a\u597dRAG\u201d\u7684\u7b2c\u4e00\u6b65\u3002<br \/>\n\u675f&#xff0c;\u591a\u8def\u53ec\u56de\u8ba9\u8bed\u4e49\u548c\u5173\u952e\u8bcd\u4e92\u8865&#xff0c;Rerank\u7cbe\u6392\u5b8c\u6210\u4ece\u7c97\u5230\u7ec6\u7684\u7b5b\u9009&#xff0c;Prompt\u62fc\u88c5\u5efa\u7acb\u884c\u4e3a\u8fb9\u754c&#xff0c;\u6eaf\u6e90\u5219\u8ba9\u7b54\u6848\u53ef\u9a8c\u8bc1\u3001\u53ef\u8ffd\u6eaf\u3002\u6bcf\u4e2a\u73af\u8282\u72ec\u7acb\u770b\u4f3c\u4e4e\u90fd\u4e0d\u590d\u6742&#xff0c;\u4f46\u8fde\u5728\u4e00\u8d77&#xff0c;\u7ec6\u8282\u5904\u7684\u53d6\u820d\u51b3\u5b9a\u4e86\u7cfb\u7edf\u7684\u6700\u7ec8\u8868\u73b0\u3002<\/p>\n<p>\u7406\u89e3\u8fd9\u6761\u94fe\u8def\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9&#xff0c;\u662f\u4ece\u201c\u4f1a\u7528RAG\u201d\u8d70\u5411\u201c\u505a\u597dRAG\u201d\u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd&#xff0c;\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48<br \/>\n\u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u80fd\u529b\u6709\u76ee\u5171\u7779&#xff0c;\u4f46\u5b83\u4eec\u6709\u4e00\u4e2a\u5c34\u5c2c\u7684\u77ed\u677f&#xff1a;\u77e5\u8bc6\u505c\u7559\u5728\u8bad\u7ec3\u622a\u6b62\u65e5\u671f\u3002\u4f60\u95ee\u5b83\u6628\u5929\u7684\u65b0\u95fb&#xff0c;\u5b83\u4e0d\u77e5\u9053&#xff1b;\u4f60\u95ee\u5b83\u516c\u53f8\u5185\u90e8\u7684\u4ea7\u54c1\u624b\u518c&#xff0c;\u5b83\u66f4\u4e0d\u77e5\u9053\u3002RAG&#xff08;Retrieval-Augmented Generation&#xff0c;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u800c\u751f\u2014\u2014\u5728\u6a21\u578b\u751f\u6210\u7b54\u6848\u4e4b\u524d&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":94306,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10336,50],"topic":[],"class_list":["post-94313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-10336","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 - \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\/94313.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd&#xff0c;\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 \u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u80fd\u529b\u6709\u76ee\u5171\u7779&#xff0c;\u4f46\u5b83\u4eec\u6709\u4e00\u4e2a\u5c34\u5c2c\u7684\u77ed\u677f&#xff1a;\u77e5\u8bc6\u505c\u7559\u5728\u8bad\u7ec3\u622a\u6b62\u65e5\u671f\u3002\u4f60\u95ee\u5b83\u6628\u5929\u7684\u65b0\u95fb&#xff0c;\u5b83\u4e0d\u77e5\u9053&#xff1b;\u4f60\u95ee\u5b83\u516c\u53f8\u5185\u90e8\u7684\u4ea7\u54c1\u624b\u518c&#xff0c;\u5b83\u66f4\u4e0d\u77e5\u9053\u3002RAG&#xff08;Retrieval-Augmented Generation&#xff0c;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u800c\u751f\u2014\u2014\u5728\u6a21\u578b\u751f\u6210\u7b54\u6848\u4e4b\u524d&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/94313.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-14T01:10:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814010956-6a7e6ae432e6a.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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94313.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/94313.html\",\"name\":\"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-14T01:10:29+00:00\",\"dateModified\":\"2026-08-14T01:10:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/94313.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/94313.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94313.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48\"}]},{\"@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":"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 - \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\/94313.html","og_locale":"zh_CN","og_type":"article","og_title":"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd&#xff0c;\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 \u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u80fd\u529b\u6709\u76ee\u5171\u7779&#xff0c;\u4f46\u5b83\u4eec\u6709\u4e00\u4e2a\u5c34\u5c2c\u7684\u77ed\u677f&#xff1a;\u77e5\u8bc6\u505c\u7559\u5728\u8bad\u7ec3\u622a\u6b62\u65e5\u671f\u3002\u4f60\u95ee\u5b83\u6628\u5929\u7684\u65b0\u95fb&#xff0c;\u5b83\u4e0d\u77e5\u9053&#xff1b;\u4f60\u95ee\u5b83\u516c\u53f8\u5185\u90e8\u7684\u4ea7\u54c1\u624b\u518c&#xff0c;\u5b83\u66f4\u4e0d\u77e5\u9053\u3002RAG&#xff08;Retrieval-Augmented Generation&#xff0c;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u800c\u751f\u2014\u2014\u5728\u6a21\u578b\u751f\u6210\u7b54\u6848\u4e4b\u524d&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/94313.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-14T01:10:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260814010956-6a7e6ae432e6a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/94313.html","url":"https:\/\/www.wsisp.com\/helps\/94313.html","name":"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-14T01:10:29+00:00","dateModified":"2026-08-14T01:10:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/94313.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/94313.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/94313.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u62c6\u89e3RAG\u5728\u7ebf\u5de5\u4f5c\u6d41\u7a0b\uff1a\u7528\u6237\u8f93\u5165\u4e00\u53e5\u8bdd\uff0c\u7cfb\u7edf\u80cc\u540e\u505a\u4e86\u4ec0\u4e48"}]},{"@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\/94313","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=94313"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/94306"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=94313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=94313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=94313"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=94313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}