{"id":110522,"date":"2026-09-28T21:48:48","date_gmt":"2026-09-28T13:48:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110522.html"},"modified":"2026-09-28T21:48:48","modified_gmt":"2026-09-28T13:48:48","slug":"spring-ai-rag-demo%ef%bc%9a%e4%b8%80%e4%b8%aa%e5%8f%af%e4%bb%a5%e7%9b%b4%e6%8e%a5%e8%bf%90%e8%a1%8c%e7%9a%84-erp-%e6%99%ba%e8%83%bd%e5%8a%a9%e6%89%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110522.html","title":{"rendered":"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b"},"content":{"rendered":"<h2>Spring AI RAG Demo&#xff1a;\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b<\/h2>\n<p>\u73b0\u5728\u5f88\u591a AI \u9879\u76ee\u53ea\u80fd\u5b8c\u6210\u7b80\u5355\u7684\u804a\u5929&#xff0c;\u4f46\u5728\u771f\u5b9e\u4e1a\u52a1\u4e2d&#xff0c;\u6211\u4eec\u901a\u5e38\u8fd8\u9700\u8981\u8ba9 AI \u67e5\u8be2\u6570\u636e\u5e93\u3001\u8bfb\u53d6\u4f01\u4e1a\u6587\u6863&#xff0c;\u5e76\u628a\u6570\u636e\u8f6c\u6362\u6210\u56fe\u8868\u3002<\/p>\n<p>\u4e3a\u6b64&#xff0c;\u6211\u5f00\u53d1\u5e76\u5f00\u6e90\u4e86\u4e00\u4e2a\u57fa\u4e8e Spring AI 2.0 \u7684 ERP \u667a\u80fd\u52a9\u624b&#xff1a;<\/p>\n<p>\u9879\u76ee\u5730\u5740&#xff1a; https:\/\/github.com\/ly1836\/spring-ai-rag-demo<\/p>\n<\/p>\n<p>img<\/p>\n<\/p>\n<h3>1. \u9879\u76ee\u7b80\u4ecb<\/h3>\n<p>Spring AI RAG Demo \u662f\u4e00\u4e2a\u9762\u5411\u5236\u9020\u4e1a ERP \u573a\u666f\u7684 AI \u52a9\u624b\u3002<\/p>\n<p>\u9879\u76ee\u628a\u4e24\u79cd\u5e38\u89c1\u7684\u4f01\u4e1a AI \u80fd\u529b\u6574\u5408\u5230\u4e86\u4e00\u8d77&#xff1a;<\/p>\n<ul>\n<li>RAG&#xff1a;\u4ece\u4f01\u4e1a\u6587\u6863\u4e2d\u68c0\u7d22\u76f8\u5173\u5185\u5bb9\u5e76\u56de\u7b54\u95ee\u9898<\/li>\n<li>Tool Calling&#xff1a;\u8c03\u7528\u540e\u7aef\u5de5\u5177\u67e5\u8be2 ERP \u5b9e\u65f6\u4e1a\u52a1\u6570\u636e<\/li>\n<\/ul>\n<p>\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u67e5\u8be2\u9500\u552e\u3001\u91c7\u8d2d\u3001\u5e93\u5b58\u3001\u751f\u4ea7\u3001\u8d22\u52a1\u7b49\u6570\u636e&#xff0c;\u4e0d\u9700\u8981\u81ea\u5df1\u7f16\u5199 SQL\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u67e5\u8be22026\u5e743\u6708\u4efd\u7684\u9500\u552e\u8ba2\u5355&#xff0c;\u6309\u4ea7\u54c1\u7edf\u8ba1\u9500\u552e\u6570\u91cf&#xff0c;\u5e76\u4f7f\u7528\u6761\u5f62\u56fe\u5c55\u793a\u3002<\/p>\n<p>AI \u4f1a\u81ea\u52a8\u9009\u62e9\u5408\u9002\u7684 Tool \u67e5\u8be2\u6570\u636e\u5e93&#xff0c;\u7136\u540e\u6574\u7406\u7ed3\u679c\u5e76\u751f\u6210\u56fe\u8868\u3002<\/p>\n<h3>2. \u4e3b\u8981\u529f\u80fd<\/h3>\n<p>\u9879\u76ee\u76ee\u524d\u5305\u542b\u4ee5\u4e0b\u529f\u80fd&#xff1a;<\/p>\n<ul>\n<li>Spring AI RAG \u77e5\u8bc6\u5e93\u95ee\u7b54<\/li>\n<li>ERP \u4e1a\u52a1\u6570\u636e Tool Calling<\/li>\n<li>DeepSeek\u3001\u901a\u4e49\u5343\u95ee\u3001Google Gemini \u591a\u6a21\u578b\u5207\u6362<\/li>\n<li>PDF\u3001Word\u3001Excel\u3001TXT \u6587\u6863\u5bfc\u5165<\/li>\n<li>PgVector \u5411\u91cf\u68c0\u7d22<\/li>\n<li>SSE \u6d41\u5f0f\u5bf9\u8bdd<\/li>\n<li>Markdown \u5b9e\u65f6\u6e32\u67d3<\/li>\n<li>\u6570\u636e\u5e93\u4f1a\u8bdd\u8bb0\u5fc6<\/li>\n<li>\u591a\u79df\u6237\u6570\u636e\u9694\u79bb<\/li>\n<li>\u52a8\u6001\u6570\u636e\u5e93 Tool \u7ba1\u7406<\/li>\n<li>Tool \u8c03\u7528\u8bb0\u5f55\u548c\u8017\u65f6\u8ffd\u8e2a<\/li>\n<li>Token \u7528\u91cf\u7edf\u8ba1\u4e0e\u8ba1\u8d39\u7ba1\u7406<\/li>\n<li>Apache ECharts \u56fe\u8868\u5c55\u793a<\/li>\n<\/ul>\n<p>\u9879\u76ee\u5185\u7f6e\u4e86\u9500\u552e\u3001\u91c7\u8d2d\u3001\u751f\u4ea7\u3001\u8d28\u68c0\u3001\u4ed3\u5e93\u3001\u8d22\u52a1\u3001\u552e\u540e\u548c\u59d4\u5916\u7b49 ERP \u6a21\u5757&#xff0c;\u5171\u63d0\u4f9b 39 \u4e2a\u4ee3\u7801 Tool\u3002<\/p>\n<h3>3. \u4e09\u79cd\u5bf9\u8bdd\u6a21\u5f0f<\/h3>\n<p>\u7cfb\u7edf\u63d0\u4f9b\u4e86\u4e09\u79cd\u5bf9\u8bdd\u6a21\u5f0f\u3002<\/p>\n<h4>3.1 \u667a\u80fd\u6a21\u5f0f<\/h4>\n<p>\u540c\u65f6\u5f00\u542f RAG \u548c Tool Calling\u3002<\/p>\n<p>AI \u4f1a\u81ea\u52a8\u5224\u65ad\u7528\u6237\u7684\u95ee\u9898\u5e94\u8be5\u67e5\u8be2\u4e1a\u52a1\u6570\u636e\u5e93&#xff0c;\u8fd8\u662f\u4ece\u77e5\u8bc6\u5e93\u4e2d\u68c0\u7d22\u6587\u6863\u3002<\/p>\n<h4>3.2 \u6570\u636e\u67e5\u8be2\u6a21\u5f0f<\/h4>\n<p>\u53ea\u4f7f\u7528 Tool Calling&#xff0c;\u9002\u5408\u67e5\u8be2 ERP \u4e1a\u52a1\u6570\u636e\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u67e5\u8be2\u91c7\u8d2d\u8ba2\u5355PO20260302\u7684\u6536\u8d27\u60c5\u51b5\u3002<\/p>\n<h4>3.3 \u77e5\u8bc6\u95ee\u7b54\u6a21\u5f0f<\/h4>\n<p>\u53ea\u4f7f\u7528 RAG&#xff0c;\u9002\u5408\u6839\u636e\u5bfc\u5165\u7684 PDF\u3001Word\u3001Excel \u6216 TXT \u6587\u6863\u56de\u7b54\u95ee\u9898\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u6839\u636e\u77e5\u8bc6\u5e93\u4ecb\u7ecd\u4e00\u4e0b Spring AI \u7684\u4e3b\u8981\u529f\u80fd\u3002<\/p>\n<h3>4. \u6280\u672f\u6808<\/h3>\n<p>\u9879\u76ee\u5f53\u524d\u4e3b\u8981\u4f7f\u7528\u4ee5\u4e0b\u6280\u672f&#xff1a;<\/p>\n<table>\n<tr>\u6280\u672f\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>Java 17&#043;<\/td>\n<td>\u5f00\u53d1\u8bed\u8a00<\/td>\n<\/tr>\n<tr>\n<td>Spring Boot 4.0.7<\/td>\n<td>\u57fa\u7840\u6846\u67b6<\/td>\n<\/tr>\n<tr>\n<td>Spring AI 2.0.0<\/td>\n<td>AI \u5e94\u7528\u5f00\u53d1<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek \/ \u901a\u4e49\u5343\u95ee \/ Gemini<\/td>\n<td>\u5927\u8bed\u8a00\u6a21\u578b<\/td>\n<\/tr>\n<tr>\n<td>PostgreSQL &#043; PgVector<\/td>\n<td>\u5411\u91cf\u6570\u636e\u5e93<\/td>\n<\/tr>\n<tr>\n<td>MySQL 8.0<\/td>\n<td>ERP\u3001\u4f1a\u8bdd\u548c\u8ba1\u8d39\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>MyBatis-Plus<\/td>\n<td>\u6570\u636e\u8bbf\u95ee<\/td>\n<\/tr>\n<tr>\n<td>SSE<\/td>\n<td>\u6d41\u5f0f\u8f93\u51fa<\/td>\n<\/tr>\n<tr>\n<td>Apache ECharts<\/td>\n<td>\u56fe\u8868\u5c55\u793a<\/td>\n<\/tr>\n<tr>\n<td>Docker Compose<\/td>\n<td>\u73af\u5883\u90e8\u7f72<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5177\u4f53\u4f9d\u8d56\u53ef\u4ee5\u67e5\u770b\u9879\u76ee\u4e2d\u7684 pom.xml\u3002<\/p>\n<h3>5. RAG \u548c Tool Calling \u7684\u533a\u522b<\/h3>\n<p>RAG \u4e3b\u8981\u89e3\u51b3\u201c\u6839\u636e\u6587\u6863\u56de\u7b54\u95ee\u9898\u201d\u3002<\/p>\n<p>\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b&#xff1a;<\/p>\n<p>\u4e0a\u4f20\u6587\u6863<br \/>\n    \u2193<br \/>\n\u89e3\u6790\u5e76\u5206\u5272\u6587\u6863<br \/>\n    \u2193<br \/>\n\u751f\u6210\u5411\u91cf<br \/>\n    \u2193<br \/>\n\u4fdd\u5b58\u5230 PgVector<br \/>\n    \u2193<br \/>\n\u6839\u636e\u95ee\u9898\u68c0\u7d22\u76f8\u5173\u5185\u5bb9<br \/>\n    \u2193<br \/>\n\u4ea4\u7ed9\u5927\u6a21\u578b\u751f\u6210\u7b54\u6848<\/p>\n<p>Tool Calling \u4e3b\u8981\u89e3\u51b3\u201c\u67e5\u8be2\u5b9e\u65f6\u4e1a\u52a1\u6570\u636e\u201d\u3002<\/p>\n<p>\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b&#xff1a;<\/p>\n<p>\u7528\u6237\u63d0\u51fa\u95ee\u9898<br \/>\n    \u2193<br \/>\n\u5927\u6a21\u578b\u9009\u62e9 Tool<br \/>\n    \u2193<br \/>\n\u540e\u7aef\u67e5\u8be2 MySQL<br \/>\n    \u2193<br \/>\n\u8fd4\u56de\u7ed3\u6784\u5316\u6570\u636e<br \/>\n    \u2193<br \/>\n\u5927\u6a21\u578b\u6574\u7406\u56de\u7b54<br \/>\n    \u2193<br \/>\n\u524d\u7aef\u5c55\u793a\u6587\u5b57\u6216\u56fe\u8868<\/p>\n<p>\u4e24\u79cd\u80fd\u529b\u7ed3\u5408\u540e&#xff0c;AI \u65e2\u80fd\u56de\u7b54\u4f01\u4e1a\u5236\u5ea6\u3001\u64cd\u4f5c\u624b\u518c\u7b49\u6587\u6863\u95ee\u9898&#xff0c;\u4e5f\u80fd\u67e5\u8be2\u5b9e\u65f6\u4e1a\u52a1\u6570\u636e\u3002<\/p>\n<h3>6. Docker Compose \u4e00\u952e\u542f\u52a8<\/h3>\n<h4>6.1 \u73af\u5883\u8981\u6c42<\/h4>\n<p>\u542f\u52a8\u524d\u9700\u8981\u51c6\u5907&#xff1a;<\/p>\n<ul>\n<li>Docker<\/li>\n<li>Docker Compose<\/li>\n<li>\u81f3\u5c11\u4e00\u4e2a\u5927\u6a21\u578b API Key<\/li>\n<\/ul>\n<h4>6.2 \u4e0b\u8f7d\u9879\u76ee<\/h4>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/ly1836\/spring-ai-rag-demo.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> spring-ai-rag-demo<\/p>\n<h4>6.3 \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521b\u5efa .env \u6587\u4ef6&#xff1a;<\/p>\n<p># \u81f3\u5c11\u914d\u7f6e\u4e00\u4e2a\u771f\u5b9e\u7684\u5927\u6a21\u578b Key<br \/>\nDEEPSEEK_API_KEY&#061;\u4f60\u7684DeepSeekKey<\/p>\n<p># \u53ef\u9009<br \/>\nDASHSCOPE_API_KEY&#061;\u4f60\u7684\u901a\u4e49\u5343\u95eeKey<br \/>\nGOOGLE_GENAI_API_KEY&#061;\u4f60\u7684GeminiKey<\/p>\n<p># MySQL \u5bc6\u7801<br \/>\nERP_DB_PASSWORD&#061;\u4f60\u7684\u6570\u636e\u5e93\u5bc6\u7801<\/p>\n<p>\u8bf7\u4e0d\u8981\u628a\u5305\u542b\u771f\u5b9e API Key \u7684 .env \u6587\u4ef6\u63d0\u4ea4\u5230 Git \u4ed3\u5e93\u3002<\/p>\n<h4>6.4 \u542f\u52a8\u670d\u52a1<\/h4>\n<p><span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p>Docker Compose \u4f1a\u542f\u52a8\u4ee5\u4e0b\u670d\u52a1&#xff1a;<\/p>\n<ul>\n<li>Spring AI \u5e94\u7528<\/li>\n<li>PostgreSQL &#043; PgVector<\/li>\n<li>MySQL<\/li>\n<\/ul>\n<p>\u67e5\u770b\u8fd0\u884c\u72b6\u6001&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> compose <span class=\"token function\">ps<\/span><\/p>\n<p>\u67e5\u770b\u5e94\u7528\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> compose logs <span class=\"token parameter variable\">-f<\/span> app<\/p>\n<p>\u542f\u52a8\u6210\u529f\u540e\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/localhost:8080<\/p>\n<p>\u505c\u6b62\u670d\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> compose down<\/p>\n<h3>7. \u53ef\u4ee5\u6d4b\u8bd5\u7684\u95ee\u9898<\/h3>\n<p>\u542f\u52a8\u9879\u76ee\u540e&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\u9762\u7684\u95ee\u9898\u3002<\/p>\n<h4>\u9500\u552e\u6570\u636e\u67e5\u8be2<\/h4>\n<p>\u67e5\u8be22026\u5e743\u67081\u65e5\u81f33\u670831\u65e5\u7684\u9500\u552e\u8ba2\u5355&#xff0c;\u6309\u4ea7\u54c1\u6c47\u603b\u9500\u552e\u6570\u91cf&#xff0c;\u5e76\u4f7f\u7528\u6761\u5f62\u56fe\u5c55\u793a\u3002<\/p>\n<h4>\u5e93\u5b58\u67e5\u8be2<\/h4>\n<p>\u67e5\u8be2\u5f53\u524d\u5e93\u5b58\u4e0d\u8db3\u7684\u4ea7\u54c1&#xff0c;\u5e76\u544a\u8bc9\u6211\u6240\u5728\u4ed3\u5e93\u3002<\/p>\n<h4>\u8d22\u52a1\u67e5\u8be2<\/h4>\n<p>\u67e5\u8be2\u5f20\u4e09\u7535\u5b50\u79d1\u6280\u6709\u9650\u516c\u53f8\u7684\u5e94\u6536\u8d26\u6b3e&#xff0c;\u5e76\u4f7f\u7528\u4eea\u8868\u76d8\u5c55\u793a\u5f53\u524d\u672a\u6536\u4f59\u989d\u3002<\/p>\n<h4>\u751f\u4ea7\u67e5\u8be2<\/h4>\n<p>\u67e5\u8be22026\u5e743\u6708\u4efd\u5f00\u59cb\u7684\u751f\u4ea7\u5de5\u5355&#xff0c;\u4f7f\u7528\u7518\u7279\u56fe\u5c55\u793a\u8ba1\u5212\u5f00\u59cb\u65f6\u95f4\u548c\u7ed3\u675f\u65f6\u95f4\u3002<\/p>\n<h4>\u77e5\u8bc6\u5e93\u95ee\u7b54<\/h4>\n<p>\u6839\u636e\u77e5\u8bc6\u5e93\u4ecb\u7ecd\u4e00\u4e0b Spring AI \u7684\u4e3b\u8981\u529f\u80fd\u3002<\/p>\n<h3>8. \u9879\u76ee\u9002\u5408\u54ea\u4e9b\u4eba<\/h3>\n<p>\u8fd9\u4e2a\u9879\u76ee\u6bd4\u8f83\u9002\u5408&#xff1a;<\/p>\n<ul>\n<li>\u6b63\u5728\u5b66\u4e60 Spring AI \u7684 Java \u5f00\u53d1\u8005<\/li>\n<li>\u60f3\u4e86\u89e3 RAG \u5b9e\u73b0\u8fc7\u7a0b\u7684\u5f00\u53d1\u8005<\/li>\n<li>\u60f3\u5b66\u4e60 Tool Calling \u7684\u5f00\u53d1\u8005<\/li>\n<li>\u51c6\u5907\u5f00\u53d1\u4f01\u4e1a\u77e5\u8bc6\u5e93\u7684\u56e2\u961f<\/li>\n<li>\u51c6\u5907\u628a\u5927\u6a21\u578b\u63a5\u5165 ERP\u3001CRM \u6216 OA \u7684\u56e2\u961f<\/li>\n<li>\u9700\u8981\u4e00\u4e2a\u5b8c\u6574 AI \u9879\u76ee\u4f5c\u4e3a\u53c2\u8003\u7684\u5f00\u53d1\u8005<\/li>\n<\/ul>\n<p>\u5b83\u4e0d\u4ec5\u5305\u542b\u7b80\u5355\u7684\u804a\u5929\u529f\u80fd&#xff0c;\u8fd8\u63d0\u4f9b\u4e86\u6570\u636e\u5e93\u67e5\u8be2\u3001\u77e5\u8bc6\u5e93\u3001\u591a\u6a21\u578b\u3001\u4f1a\u8bdd\u8bb0\u5fc6\u3001\u591a\u79df\u6237\u3001\u8ba1\u8d39\u548c\u56fe\u8868\u5c55\u793a\u7b49\u5b8c\u6574\u529f\u80fd\u3002<\/p>\n<h3>9. \u603b\u7ed3<\/h3>\n<p>Spring AI RAG Demo \u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528 Spring AI \u6784\u5efa\u4e00\u4e2a\u66f4\u63a5\u8fd1\u771f\u5b9e\u4e1a\u52a1\u7684 AI \u52a9\u624b\u3002<\/p>\n<p>\u9879\u76ee\u5c06\u4e0b\u9762\u51e0\u79cd\u80fd\u529b\u8fdb\u884c\u4e86\u6574\u5408&#xff1a;<\/p>\n<p>Spring AI<br \/>\n    &#043; RAG<br \/>\n    &#043; Tool Calling<br \/>\n    &#043; PgVector<br \/>\n    &#043; MySQL<br \/>\n    &#043; \u591a\u6a21\u578b<br \/>\n    &#043; SSE<br \/>\n    &#043; ECharts<\/p>\n<p>\u5982\u679c\u4f60\u6b63\u5728\u5b66\u4e60 Spring AI&#xff0c;\u6216\u8005\u51c6\u5907\u5f00\u53d1\u4f01\u4e1a\u7ea7 AI \u52a9\u624b&#xff0c;\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u9879\u76ee\u4f5c\u4e3a\u53c2\u8003\u3002<\/p>\n<p>\u9879\u76ee\u5df2\u7ecf\u5f00\u6e90&#xff0c;\u6b22\u8fce Star\u3001Fork\u3001\u63d0\u4ea4 Issue \u6216\u53c2\u4e0e\u6539\u8fdb\u3002<\/p>\n<p>GitHub&#xff1a; https:\/\/github.com\/ly1836\/spring-ai-rag-demo<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring AI RAG Demo&#xff1a;\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b<br \/>\n\u73b0\u5728\u5f88\u591a AI \u9879\u76ee\u53ea\u80fd\u5b8c\u6210\u7b80\u5355\u7684\u804a\u5929&#xff0c;\u4f46\u5728\u771f\u5b9e\u4e1a\u52a1\u4e2d&#xff0c;\u6211\u4eec\u901a\u5e38\u8fd8\u9700\u8981\u8ba9 AI \u67e5\u8be2\u6570\u636e\u5e93\u3001\u8bfb\u53d6\u4f01\u4e1a\u6587\u6863&#xff0c;\u5e76\u628a\u6570\u636e\u8f6c\u6362\u6210\u56fe\u8868\u3002<br \/>\n\u4e3a\u6b64&#xff0c;\u6211\u5f00\u53d1\u5e76\u5f00\u6e90\u4e86\u4e00\u4e2a\u57fa\u4e8e Spring AI 2.0 \u7684 ERP \u667a\u80fd\u52a9\u624b&#xff1a;<br \/>\n\u9879\u76ee\u5730\u5740&#xff1a; https:\/\/github.com\/ly1836\/spring-ai-rag<\/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":[99,101,50],"topic":[],"class_list":["post-110522","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-spring","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b - \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\/110522.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Spring AI RAG Demo&#xff1a;\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b \u73b0\u5728\u5f88\u591a AI \u9879\u76ee\u53ea\u80fd\u5b8c\u6210\u7b80\u5355\u7684\u804a\u5929&#xff0c;\u4f46\u5728\u771f\u5b9e\u4e1a\u52a1\u4e2d&#xff0c;\u6211\u4eec\u901a\u5e38\u8fd8\u9700\u8981\u8ba9 AI \u67e5\u8be2\u6570\u636e\u5e93\u3001\u8bfb\u53d6\u4f01\u4e1a\u6587\u6863&#xff0c;\u5e76\u628a\u6570\u636e\u8f6c\u6362\u6210\u56fe\u8868\u3002 \u4e3a\u6b64&#xff0c;\u6211\u5f00\u53d1\u5e76\u5f00\u6e90\u4e86\u4e00\u4e2a\u57fa\u4e8e Spring AI 2.0 \u7684 ERP \u667a\u80fd\u52a9\u624b&#xff1a; \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/github.com\/ly1836\/spring-ai-rag\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110522.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-28T13:48:48+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\/110522.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110522.html\",\"name\":\"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-28T13:48:48+00:00\",\"dateModified\":\"2026-09-28T13:48:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110522.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110522.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110522.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b\"}]},{\"@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 RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b - \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\/110522.html","og_locale":"zh_CN","og_type":"article","og_title":"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Spring AI RAG Demo&#xff1a;\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b \u73b0\u5728\u5f88\u591a AI \u9879\u76ee\u53ea\u80fd\u5b8c\u6210\u7b80\u5355\u7684\u804a\u5929&#xff0c;\u4f46\u5728\u771f\u5b9e\u4e1a\u52a1\u4e2d&#xff0c;\u6211\u4eec\u901a\u5e38\u8fd8\u9700\u8981\u8ba9 AI \u67e5\u8be2\u6570\u636e\u5e93\u3001\u8bfb\u53d6\u4f01\u4e1a\u6587\u6863&#xff0c;\u5e76\u628a\u6570\u636e\u8f6c\u6362\u6210\u56fe\u8868\u3002 \u4e3a\u6b64&#xff0c;\u6211\u5f00\u53d1\u5e76\u5f00\u6e90\u4e86\u4e00\u4e2a\u57fa\u4e8e Spring AI 2.0 \u7684 ERP \u667a\u80fd\u52a9\u624b&#xff1a; \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/github.com\/ly1836\/spring-ai-rag","og_url":"https:\/\/www.wsisp.com\/helps\/110522.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-28T13:48:48+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\/110522.html","url":"https:\/\/www.wsisp.com\/helps\/110522.html","name":"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-28T13:48:48+00:00","dateModified":"2026-09-28T13:48:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110522.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110522.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110522.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Spring AI RAG Demo\uff1a\u4e00\u4e2a\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684 ERP \u667a\u80fd\u52a9\u624b"}]},{"@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\/110522","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=110522"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110522\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110522"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}