{"id":96815,"date":"2026-08-28T12:41:02","date_gmt":"2026-08-28T04:41:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/96815.html"},"modified":"2026-08-28T12:41:02","modified_gmt":"2026-08-28T04:41:02","slug":"spring-ai-30-%c2%b7-%e9%87%8d%e6%8e%92%e5%ba%8f-rerank-%e9%9b%86%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/96815.html","title":{"rendered":"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210"},"content":{"rendered":"<h2>30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210<\/h2>\n<p>&#x1f3af; \u5b66\u5b8c\u80fd\u505a\u4ec0\u4e48&#xff1a;\u7406\u89e3\u300c\u7c97\u6392 &#043; \u7cbe\u6392\u300d\u4e24\u9636\u6bb5\u68c0\u7d22&#xff0c;\u7528 Rerank \u6a21\u578b\u5bf9\u5019\u9009\u7ed3\u679c\u91cd\u65b0\u7cbe\u6392&#xff0c;\u663e\u8457\u63d0\u5347 RAG \u6700\u7ec8\u51c6\u786e\u7387\u3002<br \/>\n\u23f1\ufe0f \u9884\u8ba1\u8017\u65f6&#xff1a;40 \u5206\u949f&#xff08;\u542b\u52a8\u624b&#xff09;<br \/>\n&#x1f517; \u4f9d\u8d56\u524d\u7f6e&#xff1a;\u7b2c 10&#xff08;\u68c0\u7d22&#xff09;\u300118&#xff08;\u8c03\u4f18&#xff09;\u300129&#xff08;\u6df7\u5408\u68c0\u7d22&#xff09;\u7ae0<br \/>\n&#x1f9e9; \u96be\u5ea6&#xff1a;&#x1f534;<\/p>\n<p>\u4e00\u53e5\u8bdd&#xff1a;\u5411\u91cf\u68c0\u7d22\u662f&#034;\u5feb\u800c\u7c97&#034;\u7684\u521d\u7b5b&#xff0c;Rerank \u662f&#034;\u6162\u800c\u51c6&#034;\u7684\u7cbe\u6392&#xff1b;\u5148\u7c97\u6392\u53ec\u56de\u4e00\u6279\u5019\u9009&#xff0c;\u518d\u7528\u91cd\u6392\u6a21\u578b\u6311\u51fa\u771f\u6b63\u6700\u76f8\u5173\u7684\u51e0\u6761&#xff0c;\u662f\u751f\u4ea7\u7ea7 RAG \u7684\u6807\u914d\u3002<\/p>\n<h3>1. \u4e3a\u4ec0\u4e48\u9700\u8981\u91cd\u6392<\/h3>\n<p>\u5411\u91cf\u68c0\u7d22\u4e3a\u4e86\u5feb&#xff0c;\u7528\u7684\u662f\u300c\u8fd1\u4f3c &#043; \u5355\u5411\u91cf\u76f8\u4f3c\u5ea6\u300d&#xff0c;\u6392\u5e8f\u672a\u5fc5\u7cbe\u51c6&#xff1a;<\/p>\n<p>\u95ee&#xff1a;&#034;\u9000\u8d27\u9700\u8981\u4ec0\u4e48\u6761\u4ef6&#xff1f;&#034;<br \/>\n\u5411\u91cf\u68c0\u7d22 TopK&#xff1a;<br \/>\n  1. \u914d\u9001\u8bf4\u660e&#8230;        \u2190 score 0.72 \u4f46\u5176\u5b9e\u4e0d\u76f8\u5173<br \/>\n  2. \u9000\u8d27\u653f\u7b56&#xff1a;7\u5929\u5b8c\u597d  \u2190 score 0.70 \u624d\u662f\u771f\u7b54\u6848&#xff0c;\u5374\u6392\u7b2c2<\/p>\n<p>Rerank \u6a21\u578b&#xff08;cross-encoder&#xff09;\u4f1a\u628a\u300c\u95ee\u9898 &#043; \u6bcf\u4e2a\u5019\u9009\u300d\u6210\u5bf9\u6df1\u5165\u6bd4\u5bf9&#xff0c;\u7ed9\u51fa\u66f4\u51c6\u7684\u76f8\u5173\u6027\u5206\u6570&#xff0c;\u91cd\u65b0\u6392\u5e8f\u3002<\/p>\n<h3>2. \u4e24\u9636\u6bb5\u68c0\u7d22\u67b6\u6784<\/h3>\n<p>\u2460 \u7c97\u6392&#xff08;\u53ec\u56de&#xff09;&#xff1a;\u5411\u91cf\/\u6df7\u5408\u68c0\u7d22&#xff0c;\u5feb&#xff0c;\u53d6\u8f83\u591a\u5019\u9009&#xff08;\u5982 TopK&#061;20&#xff09;<br \/>\n        \u2502<br \/>\n        \u25bc<br \/>\n\u2461 \u7cbe\u6392&#xff08;\u91cd\u6392&#xff09;&#xff1a;Rerank \u6a21\u578b\u5bf9 20 \u4e2a\u5019\u9009\u9010\u4e00\u6253\u5206&#xff0c;\u53d6\u771f\u6b63\u6700\u76f8\u5173\u7684 TopN&#xff08;\u5982 4&#xff09;<br \/>\n        \u2502<br \/>\n        \u25bc<br \/>\n   \u5582\u7ed9 LLM \u751f\u6210\u56de\u7b54<\/p>\n<ul>\n<li>\u7c97\u6392\u8d1f\u8d23\u300c\u522b\u6f0f\u300d&#xff08;\u9ad8\u53ec\u56de&#xff09;&#xff0c;\u7cbe\u6392\u8d1f\u8d23\u300c\u6392\u51c6\u300d&#xff08;\u9ad8\u7cbe\u5ea6&#xff09;\u3002<\/li>\n<li>\u7c97\u6392\u53d6 20\u3001\u7cbe\u6392\u9009 4 \u662f\u5e38\u89c1\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h3>3. \u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u7528 Rerank \u68c0\u7d22\u5168\u5e93<\/h3>\n<p>Rerank \u7cbe\u5ea6\u9ad8\u4f46\u6162\u2014\u2014\u5b83\u8981\u5bf9\u300c\u6bcf\u4e2a\u5019\u9009\u300d\u90fd\u8dd1\u4e00\u6b21\u6df1\u5ea6\u6bd4\u5bf9\u3002\u5168\u5e93\u51e0\u4e07\u6761\u90fd rerank \u4e0d\u73b0\u5b9e\u3002\u6240\u4ee5\u5fc5\u987b\u5148\u7528\u5411\u91cf\u68c0\u7d22\u5feb\u901f\u7f29\u5c0f\u5230\u51e0\u5341\u4e2a\u5019\u9009&#xff0c;\u518d rerank\u3002\u8fd9\u5c31\u662f\u4e24\u9636\u6bb5\u7684\u610f\u4e49\u3002<\/p>\n<h3>4. \u5728 Spring AI \u4e2d\u96c6\u6210 Rerank<\/h3>\n<p>\u601d\u8def&#xff1a;\u7c97\u6392\u62ff\u5019\u9009 \u2192 \u8c03\u7528 Rerank \u6a21\u578b\/API \u6253\u5206 \u2192 \u6309\u65b0\u5206\u6570\u6392\u5e8f\u53d6 TopN\u3002<\/p>\n<p><span class=\"token annotation punctuation\">&#064;Service<\/span><br \/>\n<span class=\"token keyword\">class<\/span> <span class=\"token class-name\">RerankSearchService<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">VectorStore<\/span> vectorStore<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">RerankClient<\/span> rerankClient<span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u4f60\u5c01\u88c5\u7684\u91cd\u6392\u6a21\u578b\u8c03\u7528&#xff08;\u5982 bge-reranker \/ cohere&#xff09;<\/span><\/p>\n<p>    <span class=\"token class-name\">RerankSearchService<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">VectorStore<\/span> vectorStore<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">RerankClient<\/span> rerankClient<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>vectorStore <span class=\"token operator\">&#061;<\/span> vectorStore<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>rerankClient <span class=\"token operator\">&#061;<\/span> rerankClient<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token class-name\">List<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">Document<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> <span class=\"token function\">search<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span> query<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">int<\/span> recallK<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">int<\/span> finalN<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u2460 \u7c97\u6392&#xff1a;\u591a\u53ec\u56de\u4e00\u4e9b\u5019\u9009<\/span><br \/>\n        <span class=\"token class-name\">List<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">Document<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> candidates <span class=\"token operator\">&#061;<\/span> vectorStore<span class=\"token punctuation\">.<\/span><span class=\"token function\">similaritySearch<\/span><span class=\"token punctuation\">(<\/span><br \/>\n                <span class=\"token class-name\">SearchRequest<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">builder<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">query<\/span><span class=\"token punctuation\">(<\/span>query<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">topK<\/span><span class=\"token punctuation\">(<\/span>recallK<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">build<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u2461 \u7cbe\u6392&#xff1a;\u5bf9\u5019\u9009\u9010\u4e00\u6253\u5206<\/span><br \/>\n        <span class=\"token class-name\">List<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> texts <span class=\"token operator\">&#061;<\/span> candidates<span class=\"token punctuation\">.<\/span><span class=\"token function\">stream<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">map<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Document<\/span><span class=\"token operator\">::<\/span><span class=\"token function\">getText<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">toList<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token class-name\">List<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">Double<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> scores <span class=\"token operator\">&#061;<\/span> rerankClient<span class=\"token punctuation\">.<\/span><span class=\"token function\">rerank<\/span><span class=\"token punctuation\">(<\/span>query<span class=\"token punctuation\">,<\/span> texts<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u8fd4\u56de\u6bcf\u4e2a\u5019\u9009\u7684\u76f8\u5173\u6027\u5206<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u2462 \u6309\u91cd\u6392\u5206\u6570\u6392\u5e8f&#xff0c;\u53d6\u524d finalN<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token class-name\">IntStream<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">range<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> candidates<span class=\"token punctuation\">.<\/span><span class=\"token function\">size<\/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 function\">boxed<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                <span class=\"token punctuation\">.<\/span><span class=\"token function\">sorted<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>i<span class=\"token punctuation\">,<\/span> j<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">-&gt;<\/span> <span class=\"token class-name\">Double<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">compare<\/span><span class=\"token punctuation\">(<\/span>scores<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>j<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> scores<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>i<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 function\">limit<\/span><span class=\"token punctuation\">(<\/span>finalN<span class=\"token punctuation\">)<\/span><br \/>\n                <span class=\"token punctuation\">.<\/span><span class=\"token function\">map<\/span><span class=\"token punctuation\">(<\/span>candidates<span class=\"token operator\">::<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                <span class=\"token punctuation\">.<\/span><span class=\"token function\">toList<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>5. \u5e38\u89c1 Rerank \u6a21\u578b<\/h3>\n<table>\n<tr>\u6a21\u578b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>bge-reranker-large<\/td>\n<td>\u5f00\u6e90\u3001\u4e2d\u6587\u597d&#xff0c;\u53ef\u672c\u5730\u90e8\u7f72<\/td>\n<\/tr>\n<tr>\n<td>Cohere Rerank<\/td>\n<td>\u4e91 API&#xff0c;\u6548\u679c\u5f3a<\/td>\n<\/tr>\n<tr>\n<td>Jina Reranker<\/td>\n<td>\u4e91 API&#xff0c;\u591a\u8bed\u8a00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Rerank \u662f\u72ec\u7acb\u4e8e Chat\/Embedding \u7684\u7b2c\u4e09\u7c7b\u6a21\u578b&#xff0c;\u9009\u578b\u65f6\u5355\u72ec\u8bc4\u4f30\u3002<\/p>\n<h3>6. \u6536\u76ca\u4e0e\u4ee3\u4ef7<\/h3>\n<table>\n<tr>\u65b9\u9762\u5f71\u54cd<\/tr>\n<tbody>\n<tr>\n<td>\u51c6\u786e\u7387<\/td>\n<td>\u2705 \u901a\u5e38\u663e\u8457\u63d0\u5347&#xff0c;\u5c24\u5176\u5019\u9009\u5f88\u591a\u65f6<\/td>\n<\/tr>\n<tr>\n<td>\u5ef6\u8fdf<\/td>\n<td>\u26a0\ufe0f \u589e\u52a0\u4e00\u6b21\u91cd\u6392\u8c03\u7528&#xff08;\u51e0\u5341~\u51e0\u767e ms&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6210\u672c<\/td>\n<td>\u26a0\ufe0f \u4e91 Rerank \u6309\u8c03\u7528\/token \u8ba1\u8d39<\/td>\n<\/tr>\n<tr>\n<td>\u590d\u6742\u5ea6<\/td>\n<td>\u26a0\ufe0f \u591a\u4e00\u4e2a\u6a21\u578b\u4f9d\u8d56<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7528\u7b2c 18\/32 \u7ae0\u7684\u8bc4\u6d4b\u96c6\u91cf\u5316 rerank \u524d\u540e\u7684\u63d0\u5347&#xff0c;\u786e\u8ba4\u6536\u76ca\u503c\u5f97\u4ee3\u4ef7\u518d\u4e0a\u7ebf\u3002<\/p>\n<h3>7. \u5b8c\u6574\u94fe\u8def&#xff1a;\u6df7\u5408\u68c0\u7d22 &#043; \u91cd\u6392 &#043; RAG<\/h3>\n<p>\u67e5\u8be2<br \/>\n  \u2192 \u6df7\u5408\u68c0\u7d22&#xff08;\u5411\u91cf&#043;\u5173\u952e\u8bcd&#xff0c;\u7b2c29\u7ae0&#xff09;\u53ec\u56de TopK&#061;20<br \/>\n  \u2192 Rerank \u7cbe\u6392 \u2192 TopN&#061;4<br \/>\n  \u2192 \u62fc\u8fdb prompt&#xff08;\u7b2c17\u7ae0\u6a21\u677f&#xff09;<br \/>\n  \u2192 LLM \u751f\u6210\u5e26\u51fa\u5904\u7684\u56de\u7b54&#xff08;\u7b2c21\u7ae0&#xff09;<\/p>\n<p>\u8fd9\u5957\u300c\u6df7\u5408\u53ec\u56de &#043; \u91cd\u6392\u7cbe\u6392\u300d\u662f\u5f53\u524d\u751f\u4ea7\u7ea7 RAG \u7684\u4e3b\u6d41\u9ad8\u51c6\u786e\u7387\u65b9\u6848\u3002<\/p>\n<h3>8. \u4e00\u53e5\u8bdd\u603b\u7ed3<\/h3>\n<p>Rerank \u662f\u4e24\u9636\u6bb5\u68c0\u7d22\u7684\u300c\u7cbe\u6392\u300d&#xff1a;\u5411\u91cf\/\u6df7\u5408\u68c0\u7d22\u7c97\u53ec\u56de\u4e00\u6279\u5019\u9009&#xff0c;\u518d\u7528 cross-encoder \u91cd\u6392\u6a21\u578b\u7cbe\u6311 TopN&#xff0c;\u663e\u8457\u63d0\u51c6&#xff1b;\u4ee3\u4ef7\u662f\u989d\u5916\u5ef6\u8fdf\u4e0e\u6210\u672c&#xff0c;\u9700\u7528\u8bc4\u6d4b\u96c6\u9a8c\u8bc1\u6536\u76ca\u3002<\/p>\n<hr \/>\n<p>\u27a1\ufe0f \u4e0b\u4e00\u7ae0&#xff1a;31-\u67e5\u8be2\u8f6c\u6362\u4e0e\u8def\u7531.md&#xff0c;\u5904\u7406\u590d\u6742\/\u6a21\u7cca\u95ee\u9898&#xff0c;\u628a\u67e5\u8be2\u6539\u5199\u3001\u6269\u5c55\u5e76\u8def\u7531\u5230\u6b63\u786e\u7684\u6570\u636e\u6e90\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210&#x1f3af; \u5b66\u5b8c\u80fd\u505a\u4ec0\u4e48&#xff1a;\u7406\u89e3\u300c\u7c97\u6392  \u7cbe\u6392\u300d\u4e24\u9636\u6bb5\u68c0\u7d22&#xff0c;\u7528 Rerank \u6a21\u578b\u5bf9\u5019\u9009\u7ed3\u679c\u91cd\u65b0\u7cbe\u6392&#xff0c;\u663e\u8457\u63d0\u5347 RAG \u6700\u7ec8\u51c6\u786e\u7387\u3002<br \/>\n\u23f1\ufe0f \u9884\u8ba1\u8017\u65f6&#xff1a;40 \u5206\u949f&#xff08;\u542b\u52a8\u624b&#xff09;<br \/>\n&#x1f517; \u4f9d\u8d56\u524d\u7f6e&#xff1a;\u7b2c 10&#xff08;\u68c0\u7d22&#xff09;\u300118&#xff08;\u8c03\u4f18&#xff09;\u300129&#xff08;\u6df7\u5408\u68c0\u7d22&#xff09;\u7ae0<br \/>\n&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[890,81,292],"topic":[],"class_list":["post-96815","post","type-post","status-publish","format-standard","hentry","category-server","tag-django","tag-python","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210 - \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\/96815.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210&#x1f3af; \u5b66\u5b8c\u80fd\u505a\u4ec0\u4e48&#xff1a;\u7406\u89e3\u300c\u7c97\u6392 \u7cbe\u6392\u300d\u4e24\u9636\u6bb5\u68c0\u7d22&#xff0c;\u7528 Rerank \u6a21\u578b\u5bf9\u5019\u9009\u7ed3\u679c\u91cd\u65b0\u7cbe\u6392&#xff0c;\u663e\u8457\u63d0\u5347 RAG \u6700\u7ec8\u51c6\u786e\u7387\u3002 \u23f1\ufe0f \u9884\u8ba1\u8017\u65f6&#xff1a;40 \u5206\u949f&#xff08;\u542b\u52a8\u624b&#xff09; &#x1f517; \u4f9d\u8d56\u524d\u7f6e&#xff1a;\u7b2c 10&#xff08;\u68c0\u7d22&#xff09;\u300118&#xff08;\u8c03\u4f18&#xff09;\u300129&#xff08;\u6df7\u5408\u68c0\u7d22&#xff09;\u7ae0 &amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/96815.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-28T04:41:02+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96815.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/96815.html\",\"name\":\"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-28T04:41:02+00:00\",\"dateModified\":\"2026-08-28T04:41:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/96815.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/96815.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96815.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210\"}]},{\"@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":"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210 - \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\/96815.html","og_locale":"zh_CN","og_type":"article","og_title":"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210&#x1f3af; \u5b66\u5b8c\u80fd\u505a\u4ec0\u4e48&#xff1a;\u7406\u89e3\u300c\u7c97\u6392 \u7cbe\u6392\u300d\u4e24\u9636\u6bb5\u68c0\u7d22&#xff0c;\u7528 Rerank \u6a21\u578b\u5bf9\u5019\u9009\u7ed3\u679c\u91cd\u65b0\u7cbe\u6392&#xff0c;\u663e\u8457\u63d0\u5347 RAG \u6700\u7ec8\u51c6\u786e\u7387\u3002 \u23f1\ufe0f \u9884\u8ba1\u8017\u65f6&#xff1a;40 \u5206\u949f&#xff08;\u542b\u52a8\u624b&#xff09; &#x1f517; \u4f9d\u8d56\u524d\u7f6e&#xff1a;\u7b2c 10&#xff08;\u68c0\u7d22&#xff09;\u300118&#xff08;\u8c03\u4f18&#xff09;\u300129&#xff08;\u6df7\u5408\u68c0\u7d22&#xff09;\u7ae0 &amp;","og_url":"https:\/\/www.wsisp.com\/helps\/96815.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-28T04:41:02+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/96815.html","url":"https:\/\/www.wsisp.com\/helps\/96815.html","name":"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-28T04:41:02+00:00","dateModified":"2026-08-28T04:41:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/96815.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/96815.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/96815.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Spring AI 30 \u00b7 \u91cd\u6392\u5e8f Rerank \u96c6\u6210"}]},{"@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\/96815","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=96815"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96815\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=96815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=96815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=96815"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=96815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}