{"id":23635,"date":"2024-12-20T10:41:39","date_gmt":"2024-12-20T02:41:39","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=23635"},"modified":"2024-12-20T10:41:39","modified_gmt":"2024-12-20T02:41:39","slug":"%e8%85%be%e8%ae%af%e4%ba%91-es%ef%bc%9a%e4%b8%80%e7%ab%99%e5%bc%8f-rag-%e6%96%b9%e6%a1%88%ef%bc%8c%e5%bc%80%e5%90%af%e6%99%ba%e8%83%bd%e6%90%9c%e7%b4%a2%e6%96%b0%e6%97%b6%e4%bb%a3","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2024\/12\/20\/23635\/","title":{"rendered":"\u817e\u8baf\u4e91 ES\uff1a\u4e00\u7ad9\u5f0f RAG \u65b9\u6848\uff0c\u5f00\u542f\u667a\u80fd\u641c\u7d22\u65b0\u65f6\u4ee3"},"content":{"rendered":"<div><img data-dominant-color=\"0f4e7c\" data-has-transparency=\"false\" style=\"--dominant-color: #0f4e7c;\" loading=\"lazy\" decoding=\"async\" class=\"not-transparent alignnone size-full wp-image-23637\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/12\/a695ae1c-2b98-441f-8da0-ba0411f04b10-300x167-1.png\" width=\"300\" height=\"167\" alt=\"\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/12\/a695ae1c-2b98-441f-8da0-ba0411f04b10-300x167-1.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/12\/a695ae1c-2b98-441f-8da0-ba0411f04b10-300x167-1-150x84.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<div><\/div>\n<div class=\"article-desc\">\u672c\u6b21\u5206\u4eab\u5c06\u6df1\u5165\u63a2\u8ba8\u817e\u8baf\u4e91 ES \u5728\u641c\u7d22\u9886\u57df\u7684\u6700\u65b0\u63a2\u7d22\uff0c\u8be6\u7ec6\u89e3\u6790\u817e\u8baf\u4e91 ES \u7684\u4e00\u7ad9\u5f0f RAG \u65b9\u6848\uff0c\u5e76\u4ecb\u7ecd\u56f4\u7ed5\u8be5\u65b9\u6848\u67b6\u6784\u843d\u5730\u6240\u8fdb\u884c\u7684\u4e00\u7cfb\u5217\u5185\u6838\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u589e\u5f3a\u4f18\u5316\u63aa\u65bd\u3002<\/div>\n<div id=\"postspictures\" class=\"article-content\">\n<div id=\"container\" class=\"container am-engine\" data-v-1d7a5742=\"\" data-element=\"root\">\n<p>\u5728\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u5f15\u9886\u7684\u9769\u547d\u6d6a\u6f6e\u4e2d\uff0c\u641c\u7d22\u4e0e\u5927\u6a21\u578b\u7684\u7d27\u5bc6\u7ed3\u5408\u5df2\u6210\u4e3a\u63a8\u52a8\u77e5\u8bc6\u8fdb\u6b65\u7684\u5173\u952e\u8981\u7d20\u3002\u4f5c\u4e3a\u5f00\u6e90\u641c\u7d22\u5f15\u64ce\u6392\u540d\u7b2c\u4e00\u7684 Elasticsearch\uff08ES\uff09\uff0c\u7ed3\u5408\u6c89\u6dc0\u591a\u5e74\u7684\u6587\u672c\u641c\u7d22\u80fd\u529b\u548c\u5f3a\u5927\u7684\u5411\u91cf\u68c0\u7d22\u80fd\u529b\u5b9e\u73b0\u6df7\u5408\u641c\u7d22\uff0c\u4f7f\u641c\u7d22\u53d8\u5f97\u66f4\u51c6\u3001\u66f4\u5168\u3001\u66f4\u667a\u80fd\u3002\u817e\u8baf\u4e91 ES \u591a\u5e74\u6765\u6301\u7eed\u5bf9\u5f00\u6e90 ES \u7684\u6027\u80fd\u3001\u6210\u672c\u3001\u7a33\u5b9a\u6027\u4ee5\u53ca\u5206\u5e03\u5f0f\u67b6\u6784\u8fdb\u884c\u6df1\u5ea6\u589e\u5f3a\u4f18\u5316\uff0c\u5e76\u5728\u6d77\u91cf\u89c4\u6a21\u7684\u4e91\u4e1a\u52a1\u4e2d\u63a5\u53d7\u8003\u9a8c\u3002\u817e\u8baf\u4e91\u57fa\u4e8e ES \u5b9e\u73b0\u4e86\u4e00\u7ad9\u5f0f RAG \u89e3\u51b3\u65b9\u6848\uff0c\u5177\u5907\u4e86 RAG \u6280\u672f\u89c4\u6a21\u5316\u843d\u5730\u80fd\u529b\u3002\u672c\u6b21\u5206\u4eab\u5c06\u6df1\u5165\u63a2\u8ba8\u817e\u8baf\u4e91 ES \u5728\u641c\u7d22\u9886\u57df\u7684\u6700\u65b0\u63a2\u7d22\uff0c\u8be6\u7ec6\u89e3\u6790\u817e\u8baf\u4e91 ES \u7684\u4e00\u7ad9\u5f0f RAG \u65b9\u6848\uff0c\u5e76\u4ecb\u7ecd\u56f4\u7ed5\u8be5\u65b9\u6848\u67b6\u6784\u843d\u5730\u6240\u8fdb\u884c\u7684\u4e00\u7cfb\u5217\u5185\u6838\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u589e\u5f3a\u4f18\u5316\u63aa\u65bd\u3002<\/p>\n<h3>\u4e00\u3001\u751f\u6d3b\u5904\u5904\u6709\u641c\u7d22<\/h3>\n<h4>1.\u00a0\u751f\u6d3b\u4e2d\u7684\u641c\u7d22<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202412\/20\/99a190d24fc8b81df0671654106b9096228fb9.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u641c\u7d22\u6280\u672f\u4e0e RAG \u7d27\u5bc6\u76f8\u8fde\uff0c\u56e0\u6b64\u5728\u6df1\u5165\u8ba8\u8bba RAG \u4e4b\u524d\uff0c\u8ba9\u6211\u4eec\u5148\u6765\u56de\u987e\u4e00\u4e0b\u751f\u6d3b\u4e2d\u7684\u641c\u7d22\u573a\u666f\u3002\u5728\u6211\u4eec\u7684\u65e5\u5e38\u751f\u6d3b\u4e2d\uff0c\u641c\u7d22\u65e0\u5904\u4e0d\u5728\uff0c\u5305\u62ec\u7f51\u7ad9\u76ee\u5f55\u3001\u89c6\u9891\u641c\u7d22\u3001\u97f3\u9891\u641c\u7d22\u5f15\u64ce\u7b49\u591a\u79cd\u7c7b\u578b\u3002<\/p>\n<h4>2.\u00a0\u641c\u7d22\u6280\u672f\u7684\u6f14\u8fdb<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s2.51cto.com\/oss\/202412\/20\/a4972b956c9f78aa7f360009bf1e2ca3a01210.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u6765\u5ba1\u89c6\u4e00\u4e0b\u641c\u7d22\u6280\u672f\u7684\u53d1\u5c55\u8f68\u8ff9\u3002\u4e92\u8054\u7f51\u65e9\u671f\u7684\u4fe1\u606f\u91cf\u8f83\u5c11\uff0c\u7b80\u5355\u7684\u5206\u7c7b\u6574\u7406\u548c\u4eba\u5de5\u67e5\u627e\u5373\u53ef\u6ee1\u8db3\u9700\u6c42\u3002\u7136\u800c\uff0c\u968f\u7740\u4e92\u8054\u7f51\u4fe1\u606f\u7684\u7206\u70b8\u5f0f\u589e\u957f\uff0c\u6587\u672c\u68c0\u7d22\u6280\u672f\u5e94\u8fd0\u800c\u751f\uff0c\u5176\u6838\u5fc3\u662f\u57fa\u4e8e\u5012\u6392\u7d22\u5f15\u7684\u65b9\u6cd5\u3002\u8fd9\u4e00\u6280\u672f\u80fd\u591f\u9ad8\u6548\u5904\u7406\u6d77\u91cf\u6570\u636e\uff08\u5982 PB \u7ea7\u6570\u636e\uff09\uff0c\u8fdb\u884c\u7cbe\u51c6\u7684\u6587\u672c\u68c0\u7d22\u3002\u7136\u800c\uff0c\u6587\u672c\u68c0\u7d22\u7684\u7f3a\u70b9\u5728\u4e8e\u7f3a\u4e4f\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u3002<\/p>\n<p>\u4e3a\u5f25\u8865\u8fd9\u4e00\u4e0d\u8db3\uff0c\u5411\u91cf\u68c0\u7d22\u6280\u672f\u5f00\u59cb\u53d1\u5c55\u3002\u5411\u91cf\u68c0\u7d22\u901a\u8fc7\u63d0\u53d6\u5bf9\u8c61\u7279\u5f81\uff0c\u5c06\u5176\u8868\u793a\u4e3a\u5411\u91cf\uff0c\u5229\u7528\u8fd9\u4e9b\u5411\u91cf\u5b9e\u73b0\u8bed\u4e49\u5c42\u9762\u7684\u641c\u7d22\u3002\u8fd1\u5e74\u6765\uff0c\u968f\u7740\u5927\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u548c\u795e\u7ecf\u7f51\u7edc\u6280\u672f\u7684\u98de\u901f\u53d1\u5c55\uff0c\u6211\u4eec\u53ef\u4ee5\u501f\u52a9\u5927\u6a21\u578b\u5bf9\u6d77\u91cf\u77e5\u8bc6\u8fdb\u884c\u641c\u7d22\uff0c\u5e76\u8fdb\u4e00\u6b65\u751f\u6210\u603b\u7ed3\u6027\u7b54\u6848\u3002\u8fd9\u4e0d\u4ec5\u62d3\u5c55\u4e86\u641c\u7d22\u7684\u6df1\u5ea6\u4e0e\u5e7f\u5ea6\uff0c\u4e5f\u5f00\u542f\u4e86\u751f\u6210\u5f0f\u641c\u7d22\u7684\u65b0\u65f6\u4ee3\u3002<\/p>\n<h4>3.\u00a0\u4e1a\u754c\u8d8b\u52bf\uff1a\u751f\u6210\u5f0f\u641c\u7d22<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s8.51cto.com\/oss\/202412\/20\/a5b8ab1357474492760732ee639c7dd85cdf48.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u8ba9\u6211\u4eec\u6bd4\u8f83\u4e00\u4e0b\u4f20\u7edf\u641c\u7d22\u4e0e\u751f\u6210\u5f0f\u641c\u7d22\u7684\u533a\u522b\u3002\u4f20\u7edf\u641c\u7d22\u7684\u6838\u5fc3\u5de5\u4f5c\u673a\u5236\u662f\u901a\u8fc7\u722c\u866b\u6293\u53d6\u7f51\u9875\uff0c\u5e76\u5c06\u8fd9\u4e9b\u7f51\u9875\u6309\u5173\u952e\u8bcd\u8fdb\u884c\u6392\u5e8f\u5c55\u793a\u3002\u7528\u6237\u5728\u9700\u8981\u83b7\u53d6\u77e5\u8bc6\u65f6\uff0c\u5fc5\u987b\u9010\u4e00\u9605\u8bfb\u548c\u5206\u6790\u8fd9\u4e9b\u7f51\u9875\uff0c\u6700\u7ec8\u5f52\u7eb3\u51fa\u6240\u9700\u7684\u4fe1\u606f\u3002\u8fd9\u79cd\u6a21\u5f0f\u867d\u7136\u80fd\u591f\u63d0\u4f9b\u4e30\u5bcc\u7684\u6570\u636e\u6765\u6e90\uff0c\u4f46\u5b66\u4e60\u6548\u7387\u8f83\u4f4e\uff0c\u8017\u8d39\u5927\u91cf\u65f6\u95f4\u548c\u7cbe\u529b\u3002<\/p>\n<p>\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u751f\u6210\u5f0f\u641c\u7d22\u4f9d\u6258\u5927\u6a21\u578b\u7684\u5f3a\u5927\u603b\u7ed3\u80fd\u529b\uff0c\u80fd\u591f\u5bf9\u641c\u7d22\u5230\u7684\u77e5\u8bc6\u8fdb\u884c\u5feb\u901f\u5f52\u7eb3\u6574\u7406\uff0c\u76f4\u63a5\u751f\u6210\u7ed3\u6784\u5316\u7684\u7b54\u6848\u6216\u603b\u7ed3\u5185\u5bb9\u3002\u8fd9\u79cd\u65b9\u5f0f\u663e\u8457\u63d0\u9ad8\u4e86\u5b66\u4e60\u6548\u7387\uff0c\u56e0\u6b64\u6210\u4e3a\u5f53\u524d\u975e\u5e38\u4e3b\u6d41\u7684\u5b66\u4e60\u65b9\u5f0f\u3002\u7136\u800c\uff0c\u751f\u6210\u5f0f\u641c\u7d22\u4e5f\u9762\u4e34\u4e00\u4e9b\u95ee\u9898\uff0c\u6211\u4eec\u5c06\u5728\u540e\u7eed\u7ae0\u8282\u4e2d\u5c55\u5f00\u8ba8\u8bba\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u4e8c\u3001\u521d\u8bc6\u68c0\u7d22\u6a21\u578b<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u4e00\u540c\u56de\u987e\u68c0\u7d22\u6a21\u578b\u7684\u53d1\u5c55\u5386\u7a0b\u3002<\/p>\n<h4>1.\u00a0\u5206\u8bcd\u7b97\u6cd5\u4e0e\u5012\u6392\u7d22\u5f15<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s2.51cto.com\/oss\/202412\/20\/c46b2fd47e081c8fadb3356022cdb714afe1cb.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u9996\u5148\u6765\u4e86\u89e3\u4e24\u9879\u5173\u952e\u6280\u672f\uff1a\u5206\u8bcd\u7b97\u6cd5\u548c\u5012\u6392\u7d22\u5f15\u3002\u5206\u8bcd\u6280\u672f\u7684\u6838\u5fc3\u662f\u5c06\u8fde\u7eed\u7684\u6587\u672c\u5207\u5272\u6210\u5355\u72ec\u7684\u5355\u8bcd\u6216\u8bcd\u7ec4\u3002\u76ee\u524d\uff0c\u5206\u8bcd\u6280\u672f\u4e3b\u8981\u5206\u4e3a\u4e09\u4e2a\u7c7b\u522b\uff1a<\/p>\n<ul data-id=\"ua73dd4b-ZCEC1J4D\">\n<li data-id=\"ld70c578-c55SDe9V\">\u57fa\u4e8e\u8bcd\u5178\u7684\u5206\u8bcd\u7b97\u6cd5\uff1a\u8fd9\u7c7b\u7b97\u6cd5\u4f9d\u8d56\u4e8e\u9884\u5148\u5b9a\u4e49\u7684\u8bcd\u5178\uff0c\u901a\u8fc7\u5339\u914d\u8bcd\u5178\u4e2d\u7684\u8bcd\u6761\u6765\u8bc6\u522b\u548c\u5206\u5272\u6587\u672c\u4e2d\u7684\u5355\u8bcd\u3002<\/li>\n<li data-id=\"ld70c578-m897GmAC\">\u57fa\u4e8e\u6982\u7387\u7684\u5206\u8bcd\u7b97\u6cd5\uff1a\u8fd9\u79cd\u7b97\u6cd5\u4e0d\u4ec5\u4ec5\u4f9d\u8d56\u8bcd\u5178\uff0c\u8fd8\u7ed3\u5408\u4e86\u7edf\u8ba1\u6982\u7387\u65b9\u6cd5\uff0c\u4ee5\u786e\u5b9a\u6587\u672c\u4e2d\u5355\u8bcd\u7684\u5206\u754c\u3002<\/li>\n<li data-id=\"ld70c578-JNEPjZPj\">\u57fa\u4e8e\u673a\u5668\u5b66\u4e60\u7684\u5206\u8bcd\u7b97\u6cd5\uff1a\u8fd9\u7c7b\u7b97\u6cd5\u4f7f\u7528\u673a\u5668\u5b66\u4e60\u6280\u672f\uff0c\u901a\u8fc7\u8bad\u7ec3\u6570\u636e\u5b66\u4e60\u5206\u8bcd\u89c4\u5219\uff0c\u4ee5\u5b9e\u73b0\u66f4\u51c6\u786e\u7684\u6587\u672c\u5206\u5272\u3002<\/li>\n<\/ul>\n<p>\u5b8c\u6210\u5206\u8bcd\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u4ece\u5355\u8bcd\u5230\u6587\u672c\u7684\u6620\u5c04\u5173\u7cfb\uff0c\u8fd9\u88ab\u79f0\u4e3a\u5012\u6392\u7d22\u5f15\u3002\u5012\u6392\u7d22\u5f15\u662f\u4e00\u79cd\u7d22\u5f15\u7ed3\u6784\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u5feb\u901f\u6839\u636e\u5173\u952e\u8bcd\u5b9a\u4f4d\u5230\u5305\u542b\u8fd9\u4e9b\u5173\u952e\u8bcd\u7684\u6587\u6863\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u6d77\u91cf\u6570\u636e\u7684\u9ad8\u6548\u68c0\u7d22\u3002\u8fd9\u79cd\u7d22\u5f15\u673a\u5236\u662f\u73b0\u4ee3\u641c\u7d22\u5f15\u64ce\u80fd\u591f\u5feb\u901f\u54cd\u5e94\u7528\u6237\u67e5\u8be2\u7684\u5173\u952e\u6280\u672f\u4e4b\u4e00\u3002<\/p>\n<h4>2.\u00a0\u7ecf\u5178\u68c0\u7d22\u6a21\u578b<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s6.51cto.com\/oss\/202412\/20\/09a6ca228a091b0015f0636b2e835814b4f8f7.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u4ecb\u7ecd\u7ecf\u5178\u7684\u68c0\u7d22\u6a21\u578b\u3002\u5728\u6b64\u5217\u4e3e\u56db\u79cd\u6700\u57fa\u7840\u7684\u6a21\u578b\uff0c\u9996\u5148\u662f\u5e03\u5c14\u68c0\u7d22\u6a21\u578b\u3002\u8fd9\u79cd\u6a21\u578b\u57fa\u4e8e\u5e03\u5c14\u903b\u8f91\u6765\u7ec4\u5408\u5173\u952e\u8bcd\uff0c\u5176\u8fd4\u56de\u7ed3\u679c\u662f\u6ee1\u8db3\u7279\u5b9a\u5e03\u5c14\u8868\u8fbe\u5f0f\u7684\u6587\u6863\u96c6\u5408\u3002\u5e03\u5c14\u68c0\u7d22\u6a21\u578b\u7684\u4f18\u70b9\u5728\u4e8e\u7ed3\u6784\u7b80\u5355\u4e14\u67e5\u8be2\u7cbe\u786e\uff0c\u4f46\u540c\u65f6\u4e5f\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\uff0c\u5982\u7f3a\u4e4f\u7075\u6d3b\u6027\uff0c\u4e0d\u63d0\u4f9b\u7ed3\u679c\u6392\u5e8f\u529f\u80fd\uff0c\u4e14\u5bf9\u7528\u6237\u7684\u67e5\u8be2\u80fd\u529b\u8981\u6c42\u8f83\u9ad8\uff0c\u9700\u8981\u7528\u6237\u80fd\u591f\u51c6\u786e\u8868\u8fbe\u4ed6\u4eec\u7684\u67e5\u8be2\u9700\u6c42\u3002<\/p>\n<p>\u7ee7\u5e03\u5c14\u68c0\u7d22\u6a21\u578b\u4e4b\u540e\uff0c\u6982\u7387\u7a7a\u95f4\u6a21\u578b\u5e94\u8fd0\u800c\u751f\u3002\u6982\u7387\u7a7a\u95f4\u6a21\u578b\u57fa\u4e8e\u6982\u7387\u8bba\uff0c\u5c24\u5176\u662f\u8d1d\u53f6\u65af\u7406\u8bba\uff0c\u5b83\u901a\u8fc7\u5229\u7528\u6587\u6863\u96c6\u5408\u4e2d\u7684\u7edf\u8ba1\u4fe1\u606f\u6765\u4f30\u7b97\u6587\u6863\u6ee1\u8db3\u7528\u6237\u67e5\u8be2\u7684\u6982\u7387\u3002\u8fd9\u79cd\u6a21\u578b\u7684\u4f18\u70b9\u5728\u4e8e\uff0c\u5b83\u63d0\u4f9b\u4e86\u6982\u7387\u89e3\u91ca\uff0c\u53ef\u4ee5\u6839\u636e\u6587\u6863\u4e0e\u67e5\u8be2\u4e4b\u95f4\u7684\u76f8\u5173\u6027\u6982\u7387\u8fdb\u884c\u6392\u5e8f\u3002\u7136\u800c\uff0c\u5b83\u4e5f\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\uff0c\u5305\u62ec\u53c2\u6570\u9009\u62e9\u548c\u6a21\u578b\u8c03\u6574\u8fc7\u7a0b\u8f83\u4e3a\u590d\u6742\uff0c\u4e14\u5728\u9762\u5bf9\u7f3a\u4e4f\u8db3\u591f\u7edf\u8ba1\u4fe1\u606f\u7684\u5c0f\u578b\u6587\u6863\u96c6\u5408\u65f6\uff0c\u5176\u6027\u80fd\u53ef\u80fd\u4e0d\u5c3d\u5982\u4eba\u610f\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u8be6\u7ec6\u4ecb\u7ecd TF-IDF \u6743\u91cd\u6a21\u578b\u548c\u5411\u91cf\u7a7a\u95f4\u6a21\u578b\u3002TF-IDF \u6a21\u578b\u4e3b\u8981\u57fa\u4e8e\u8bcd\u9891\uff08Term Frequency\uff09\u548c\u9006\u6587\u6863\u9891\u7387\uff08Inverse Document Frequency\uff09\u6765\u8bc4\u4f30\u4e00\u4e2a\u8bcd\u5728\u6587\u6863\u4e2d\u7684\u91cd\u8981\u6027\u3002\u8fd9\u79cd\u6280\u672f\u76ee\u524d\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6587\u6863\u68c0\u7d22\u548c\u6587\u672c\u6316\u6398\u9886\u57df\u3002\u5c3d\u7ba1\u5176\u6838\u5fc3\u4ecd\u7136\u662f\u57fa\u4e8e\u5173\u952e\u8bcd\u7684\u68c0\u7d22\uff0c\u4f46\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u80fd\u591f\u8bc4\u4f30\u8bcd\u8bed\u5728\u6587\u6863\u96c6\u5408\u4e2d\u7684\u91cd\u8981\u6027\u3002<\/p>\n<p>\u5411\u91cf\u7a7a\u95f4\u6a21\u578b\u5219\u57fa\u4e8e\u5411\u91cf\u68c0\u7d22\uff0c\u5b83\u5c06\u6587\u672c\u8f6c\u6362\u4e3a\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u70b9\uff0c\u901a\u8fc7\u8ba1\u7b97\u5411\u91cf\u4e4b\u95f4\u7684\u8ddd\u79bb\u6216\u76f8\u4f3c\u5ea6\u6765\u8fdb\u884c\u68c0\u7d22\u3002\u8fd9\u79cd\u6a21\u578b\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u80fd\u591f\u8fdb\u884c\u8bed\u4e49\u68c0\u7d22\uff0c\u56e0\u4e3a\u5b83\u8003\u8651\u4e86\u8bcd\u9879\u4e4b\u95f4\u7684\u76f8\u5bf9\u5173\u7cfb\u548c\u4e0a\u4e0b\u6587\u3002\u7136\u800c\uff0c\u5b83\u7684\u7f3a\u70b9\u5728\u4e8e\u9ad8\u7ef4\u7a7a\u95f4\u53ef\u80fd\u5bfc\u81f4\u8ba1\u7b97\u6210\u672c\u8f83\u9ad8\u3002\u6b64\u5916\uff0c\u7531\u4e8e\u6211\u4eec\u76ee\u524d\u63cf\u8ff0\u5411\u91cf\u7684\u7279\u5f81\u7ef4\u5ea6\u6709\u9650\uff0c\u6700\u591a\u8fbe\u52304096\u7ef4\uff0c\u56e0\u6b64\u7ed3\u679c\u7684\u51c6\u786e\u6027\u53ef\u80fd\u4e0d\u5982\u57fa\u4e8e\u6587\u672c\u7684\u68c0\u7d22\u65b9\u6cd5\u9ad8\u3002\u8fd9\u610f\u5473\u7740\u5728\u5904\u7406\u9ad8\u7ef4\u6570\u636e\u65f6\uff0c\u5411\u91cf\u7a7a\u95f4\u6a21\u578b\u53ef\u80fd\u4f1a\u9047\u5230\u6027\u80fd\u74f6\u9888\uff0c\u4e14\u5728\u51c6\u786e\u6027\u4e0a\u53ef\u80fd\u6709\u6240\u59a5\u534f\u3002<\/p>\n<h4>3.\u00a0\u5168\u6587\u68c0\u7d22<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s6.51cto.com\/oss\/202412\/20\/d4a02414087dd9a465b30866cf827c34e2ab21.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u4ecb\u7ecd\u7684\u662f\u5168\u6587\u68c0\u7d22\u3002\u5168\u6587\u68c0\u7d22\u7ed3\u5408\u4e86\u524d\u9762\u4ecb\u7ecd\u7684\u6982\u7387\u7a7a\u95f4\u6a21\u578b\u548c TF-IDF \u6a21\u578b\uff0c\u901a\u8fc7\u5206\u8bcd\u3001\u5012\u6392\u7d22\u5f15\u4ee5\u53ca\u8d1d\u53f6\u65af\u7b97\u6cd5\u7b49\u6280\u672f\u6765\u7edf\u8ba1\u8bcd\u8bed\u4e0e\u6587\u6863\u7684\u76f8\u5173\u6027\uff0c\u8fdb\u800c\u627e\u5230\u5305\u542b\u7279\u5b9a\u5173\u952e\u8bcd\u6216\u77ed\u8bed\u7684\u6587\u6863\u3002\u4ee5 TF-IDF \u4e3a\u4f8b\uff0cTF \u6307\u7684\u662f\u8bcd\u6761\u5728\u6587\u6863\u4e2d\u51fa\u73b0\u7684\u9891\u7387\uff0c\u5373\u8bcd\u9891\uff1bIDF \u5219\u662f\u8bcd\u6761\u5728\u6240\u6709\u6587\u6863\u4e2d\u51fa\u73b0\u7684\u9006\u9891\u7387\uff0c\u5b83\u662f\u901a\u8fc7\u53d6\u8bcd\u6761\u51fa\u73b0\u6b21\u6570\u7684\u5012\u6570\u518d\u53d6\u5bf9\u6570\u5f97\u5230\u7684\u3002\u603b\u4f53\u800c\u8a00\uff0c\u4e00\u4e2a\u8bcd\u8bed\u5728\u4e00\u7bc7\u6587\u7ae0\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u8d8a\u591a\uff0c\u540c\u65f6\u5728\u6240\u6709\u6587\u6863\u4e2d\u51fa\u73b0\u7684\u9891\u7387\u8d8a\u4f4e\uff0c\u5b83\u5c31\u8d8a\u80fd\u4ee3\u8868\u8be5\u6587\u6863\u3002\u8fd9\u79cd\u68c0\u7d22\u65b9\u5f0f\u76f8\u8f83\u4e8e\u4f20\u7edf\u7684\u5173\u952e\u8bcd\u6587\u672c\u68c0\u7d22\uff0c\u5177\u6709\u8bc4\u5206\u548c\u8bc4\u4f30\u76f8\u5173\u6027\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u5176\u7cbe\u51c6\u6027\u5f97\u5230\u4e86\u663e\u8457\u63d0\u5347\uff0c\u5e76\u4e14\u80fd\u591f\u5e94\u5bf9\u5173\u952e\u8bcd\u7684\u7f3a\u5931\u3002\u7136\u800c\uff0c\u5b83\u7684\u5c40\u9650\u6027\u5728\u4e8e\u4ecd\u7136\u57fa\u4e8e\u6587\u672c\uff0c\u7f3a\u4e4f\u8f83\u597d\u7684\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u3002\u4f8b\u5982\uff0c\u201c\u8ba1\u7b97\u673a\u201d\u548c\u201c\u7535\u8111\u201d\u5728\u8bed\u4e49\u4e0a\u662f\u76f8\u540c\u7684\uff0c\u4f46\u5728\u5168\u6587\u68c0\u7d22\u4e2d\u4ecd\u7136\u88ab\u89c6\u4e3a\u4e24\u4e2a\u72ec\u7acb\u7684\u8bcd\u3002<\/p>\n<h4>4.\u00a0\u5411\u91cf\u68c0\u7d22<\/h4>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s4.51cto.com\/oss\/202412\/20\/06e88c93797b3687874411558bef43bd3dee75.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5411\u91cf\u68c0\u7d22\uff0c\u4e5f\u79f0\u4e3a\u8fd1\u4f3c\u68c0\u7d22\u6216\u8bed\u4e49\u68c0\u7d22\uff0c\u5b83\u901a\u8fc7\u5c06\u6587\u6863\u548c\u67e5\u8be2\u8868\u793a\u4e3a\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u5411\u91cf\uff0c\u5e76\u5229\u7528\u8fd9\u4e9b\u5411\u91cf\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u6765\u68c0\u7d22\u51fa\u4e0e\u67e5\u8be2\u6700\u76f8\u5173\u7684\u6587\u6863\u3002\u8fd9\u79cd\u68c0\u7d22\u65b9\u5f0f\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u826f\u597d\u7684\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u3002\u7136\u800c\uff0c\u7531\u4e8e\u63cf\u8ff0\u5411\u91cf\u65f6\u7279\u5f81\u7ef4\u5ea6\u7684\u9650\u5236\uff0c\u5176\u7cbe\u51c6\u6027\u53ef\u80fd\u5b58\u5728\u4e0d\u8db3\u3002\u6b64\u5916\uff0c\u5411\u91cf\u68c0\u7d22\u65e0\u6cd5\u6709\u6548\u5e94\u5bf9\u5173\u952e\u8bcd\u68c0\u7d22\uff0c\u4e14\u96be\u4ee5\u8868\u8fbe\u6587\u6863\u7684\u989d\u5916\u5c5e\u6027\u3002\u8fd9\u4e9b\u5c40\u9650\u6027\u8868\u660e\uff0c\u5c3d\u7ba1\u5411\u91cf\u68c0\u7d22\u5728\u8bed\u4e49\u5c42\u9762\u6709\u6240\u7a81\u7834\uff0c\u4f46\u5728\u7cbe\u786e\u6027\u548c\u529f\u80fd\u6027\u65b9\u9762\u4ecd\u6709\u6539\u8fdb\u7684\u7a7a\u95f4\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u4e09\u3001\u4ece Lucene \u5230 ES<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u5c06\u8fdb\u5165\u4eca\u5929\u7684\u4e3b\u9898\u2014\u2014Elasticsearch\uff08ES\uff09\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202412\/20\/43d140342382cf89500238cb888214198a8b06.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u9996\u5148\u6765\u4ecb\u7ecd\u4e00\u4e0b Lucene\u3002Lucene \u662f Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u4e0b\u7684\u4e00\u4e2a\u5f00\u6e90\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u5de5\u5177\u5305\u3002\u5b83\u4e3a\u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u7c7b\u5e93\uff0c\u4ee5\u4fbf\u5728\u76ee\u6807\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u7684\u529f\u80fd\u3002<\/p>\n<p>Lucene \u57fa\u4e8e\u5012\u6392\u7d22\u5f15\uff0c\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u6587\u672c\u5904\u7406\u548c\u641c\u7d22\u529f\u80fd\uff0c\u5305\u62ec\u5206\u8bcd\u3001\u505c\u7528\u8bcd\u5904\u7406\u3001\u8bc4\u5206\u6392\u5e8f\u3001\u9ad8\u4eae\u663e\u793a\u4ee5\u53ca\u8fd1\u5b9e\u65f6\u641c\u7d22\u7b49\u3002\u6b64\u5916\uff0cLucene \u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u67e5\u8be2\u65b9\u5f0f\uff0c\u4f8b\u5982\u8303\u56f4\u67e5\u8be2\u3001\u524d\u7f00\u5339\u914d\u3001\u6a21\u7cca\u5339\u914d\u548c\u5e03\u5c14\u67e5\u8be2\u7b49\uff0c\u8fd9\u4e9b\u529f\u80fd\u4f7f\u5f97\u5b83\u5728\u5168\u6587\u68c0\u7d22\u9886\u57df\u975e\u5e38\u5f3a\u5927\u548c\u7075\u6d3b\u3002\u901a\u8fc7\u8fd9\u4e9b\u9ad8\u7ea7\u641c\u7d22\u7279\u6027\uff0cLucene \u80fd\u591f\u6ee1\u8db3\u5404\u79cd\u590d\u6742\u7684\u641c\u7d22\u9700\u6c42\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u5feb\u901f\u800c\u51c6\u786e\u7684\u641c\u7d22\u7ed3\u679c\u3002\u57fa\u672c\u4e0a\u5728\u4e1a\u754c\u53ea\u8981\u63d0\u5168\u6587\u68c0\u7d22\uff0cLucene \u5c31\u662f\u7b2c\u4e00\u9009\u62e9\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202412\/20\/81b914e1493aaea3e07017c95fa81102b6b9fa.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5c3d\u7ba1 Lucene \u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5168\u6587\u68c0\u7d22\u5e93\uff0c\u4f46\u5b83\u662f\u4e3a\u5355\u673a\u73af\u5883\u8bbe\u8ba1\u7684\u3002\u4e3a\u4e86\u89e3\u51b3\u5927\u89c4\u6a21\u6570\u636e\u548c\u5206\u5e03\u5f0f\u73af\u5883\u7684\u9700\u6c42\uff0cElasticsearch \u5e94\u8fd0\u800c\u751f\u3002Elasticsearch\uff08\u7b80\u79f0 ES\uff09\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u3001\u57fa\u4e8e Lucene \u7684\u5206\u5e03\u5f0f\u5168\u6587\u68c0\u7d22\u548c\u6570\u636e\u5206\u6790\u5f15\u64ce\u3002\u5b83\u80fd\u591f\u5904\u7406\u6d77\u91cf\u6570\u636e\uff0c\u5e76\u63d0\u4f9b\u5b9e\u65f6\u7684\u68c0\u7d22\u548c\u7edf\u8ba1\u5206\u6790\u529f\u80fd\u3002Elasticsearch \u7684\u8bbe\u8ba1\u4f7f\u5176\u6210\u4e3a\u5904\u7406\u5927\u6570\u636e\u573a\u666f\u7684\u7406\u60f3\u9009\u62e9\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5feb\u901f\u54cd\u5e94\u548c\u9ad8\u541e\u5410\u91cf\u7684\u73af\u5883\u4e2d\u3002<\/p>\n<p>Elasticsearch \u7684\u793e\u533a\u975e\u5e38\u5e9e\u5927\uff0c\u5168\u7403\u6709\u8d85\u8fc7 10 \u4e07\u7684\u793e\u533a\u53c2\u4e0e\u8005\uff0c\u5176\u4e2d\u5728\u4e2d\u56fd\u5c31\u6709 1 \u4e07\u3002\u8fd9\u4e2a\u6570\u5b57\u4f53\u73b0\u4e86 Elasticsearch \u5728\u5168\u7403\u8303\u56f4\u5185\u7684\u5e7f\u6cdb\u53d7\u6b22\u8fce\u548c\u5e94\u7528\u3002\u6b64\u5916\uff0cElasticsearch \u7684\u4e0b\u8f7d\u91cf\u8fbe\u5230\u4e86 3.5 \u4ebf\u6b21\uff0c\u5728\u5168\u7403\u641c\u7d22\u5f15\u64ce\u7684\u6392\u540d\u4e2d\uff0cElasticsearch \u4f4d\u5c45\u7b2c\u4e00\uff0c\u5728\u5168\u7403\u6570\u636e\u5e93\u7684\u6392\u540d\u4e2d\u4f4d\u5217\u7b2c\u4e03\u3002\u8fd9\u4e9b\u6392\u540d\u6570\u636e\u6e90\u81ea DB-Engines\uff0c\u8fd9\u662f\u4e00\u4e2a\u5e7f\u53d7\u8ba4\u53ef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6392\u540d\u7f51\u7ad9\u3002\u5176\u6392\u540d\u4f9d\u636e\u6db5\u76d6\u591a\u4e2a\u7ef4\u5ea6\uff0c\u5305\u62ec\u793e\u533a\u6d3b\u8dc3\u5ea6\u3001\u4e0b\u8f7d\u91cf\u3001\u4e13\u4e1a\u51fa\u7248\u7269\u4e2d\u7684\u63d0\u53ca\u6b21\u6570\u7b49\uff0c\u4ece\u800c\u4e3a\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u6d41\u884c\u5ea6\u548c\u5f71\u54cd\u529b\u63d0\u4f9b\u4e86\u6743\u5a01\u7684\u53c2\u8003\u3002Elasticsearch \u5728\u8fd9\u4e9b\u6392\u540d\u4e2d\u7684\u5353\u8d8a\u8868\u73b0\uff0c\u8fdb\u4e00\u6b65\u5f70\u663e\u4e86\u5176\u5728\u5168\u6587\u68c0\u7d22\u548c\u6570\u636e\u5206\u6790\u9886\u57df\u7684\u91cd\u8981\u5730\u4f4d\u3002<\/p>\n<p>\u5f53\u524d Elasticsearch \u63d0\u4f9b\u4e86\u4e00\u4e2a ELK \u5957\u4ef6\u3002Elasticsearch \u4f5c\u4e3a ELK \u6808\u7684\u4e2d\u5fc3\uff0c\u4e3b\u8981\u8d1f\u8d23\u6570\u636e\u7684\u5b58\u50a8\u548c\u5206\u6790\u3002ELK \u6808\u5305\u62ec\u4ee5\u4e0b\u4e09\u4e2a\u4e3b\u8981\u7ec4\u4ef6\uff1a<\/p>\n<ul data-id=\"ua73dd4b-H0MXkQNU\">\n<li data-id=\"ld70c578-cjXQj532\">Elasticsearch\uff1a\u8d1f\u8d23\u5b58\u50a8\u3001\u641c\u7d22\u548c\u5206\u6790\u6570\u636e\u3002\u5b83\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u641c\u7d22\u5f15\u64ce\uff0c\u80fd\u591f\u5904\u7406\u5927\u91cf\u6570\u636e\uff0c\u5e76\u63d0\u4f9b\u5feb\u901f\u7684\u6570\u636e\u68c0\u7d22\u80fd\u529b\u3002<\/li>\n<li data-id=\"ld70c578-HhOOQWNO\">Kibana\uff1a\u8d1f\u8d23\u6570\u636e\u7684\u53ef\u89c6\u5316\u5c55\u793a\u3002Kibana \u5141\u8bb8\u7528\u6237\u901a\u8fc7\u56fe\u8868\u3001\u5730\u56fe\u548c\u4eea\u8868\u677f\u7b49\u5f62\u5f0f\u76f4\u89c2\u5730\u67e5\u770b\u548c\u7406\u89e3 Elasticsearch \u4e2d\u7684\u6570\u636e\u3002<\/li>\n<li data-id=\"ld70c578-a8BeX8cP\">Logstash\uff1a\u8d1f\u8d23\u6570\u636e\u91c7\u96c6\u548c\u5904\u7406\u3002Logstash \u662f\u4e00\u4e2a\u670d\u52a1\u5668\u7aef\u6570\u636e\u5904\u7406\u7ba1\u9053\uff0c\u53ef\u4ee5\u540c\u65f6\u4ece\u591a\u4e2a\u6765\u6e90\u91c7\u96c6\u6570\u636e\uff0c\u8f6c\u6362\u6570\u636e\uff0c\u7136\u540e\u5c06\u6570\u636e\u53d1\u9001\u5230 Elasticsearch\u3002<\/li>\n<\/ul>\n<p>\u6709\u65f6\uff0cELK \u6808\u4e5f\u4f1a\u5305\u62ec Beats\uff0c\u8fd9\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u91c7\u96c6\u5668\uff0c\u7528\u4e8e\u5411 Elasticsearch \u6216 Logstash \u53d1\u9001\u6570\u636e\u3002Beats \u6709\u591a\u79cd\u7c7b\u578b\uff0c\u6bcf\u79cd\u7c7b\u578b\u90fd\u9488\u5bf9\u7279\u5b9a\u7684\u6570\u636e\u7c7b\u578b\u6216\u4f7f\u7528\u573a\u666f\u8fdb\u884c\u4e86\u4f18\u5316\u3002<\/p>\n<p>ELK \u6808\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u4ece\u6570\u636e\u91c7\u96c6\u3001\u5904\u7406\u5230\u5b58\u50a8\u548c\u53ef\u89c6\u5316\uff0c\u4f7f\u5f97\u7528\u6237\u80fd\u591f\u8f7b\u677e\u5730\u4ece\u5927\u91cf\u6570\u636e\u4e2d\u63d0\u53d6\u6709\u4ef7\u503c\u7684\u4fe1\u606f\u3002\u8fd9\u4e2a\u6808\u56e0\u5176\u7075\u6d3b\u6027\u3001\u53ef\u6269\u5c55\u6027\u548c\u6613\u7528\u6027\u800c\u53d7\u5230\u8bb8\u591a\u4f01\u4e1a\u548c\u5f00\u53d1\u8005\u7684\u9752\u7750\u3002<\/p>\n<p>Elasticsearch \u4e00\u76f4\u662f\u65e5\u5fd7\u573a\u666f\u4e2d\u7684\u9996\u9009\u89e3\u51b3\u65b9\u6848\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u63d0\u4f9b\u9ad8\u6027\u80fd\u7684\u6d77\u91cf\u6570\u636e\u5168\u6587\u68c0\u7d22\u3002\u540c\u65f6\uff0cElasticsearch \u63d0\u4f9b\u4e86\u5546\u4e1a\u5957\u4ef6 X-Pack\uff0c\u8be5\u5957\u4ef6\u589e\u5f3a\u4e86 Elasticsearch \u7684\u529f\u80fd\uff0c\u5305\u62ec\u6570\u636e\u5b89\u5168\u3001\u544a\u8b66\u3001\u76d1\u63a7\u3001\u62a5\u8868\u3001\u56fe\u67e5\u8be2\u4ee5\u53ca\u673a\u5668\u5b66\u4e60\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002\u8fd9\u4e9b\u529f\u80fd\u4f7f\u5f97 Elasticsearch \u4e0d\u4ec5\u80fd\u591f\u5904\u7406\u548c\u68c0\u7d22\u6570\u636e\uff0c\u8fd8\u80fd\u591f\u63d0\u4f9b\u66f4\u6df1\u5c42\u6b21\u7684\u6570\u636e\u6d1e\u5bdf\u548c\u5b89\u5168\u4fdd\u969c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u56db\u3001\u5927\u6a21\u578b\u4e0e RAG<\/h3>\n<p>\u63a5\u4e0b\u6765\u63a2\u8ba8\u5927\u6a21\u578b\u4e0e RAG\uff08Retrieval Augmented Generation\uff09\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s7.51cto.com\/oss\/202412\/20\/081492399510a74d842996db9977951c751a1b.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5927\u6a21\u578b\u4e3b\u8981\u5206\u4e3a\u4e24\u7c7b\uff1a<\/p>\n<ul data-id=\"ua73dd4b-aD5ac5Mm\">\n<li data-id=\"ld70c578-BZ0hBlms\"><strong>\u51b3\u7b56\u5f0f\u5927\u6a21\u578b<\/strong>\uff1a\u8fd9\u7c7b\u6a21\u578b\u4e3b\u8981\u6839\u636e\u6570\u636e\u8f93\u5165\u8fdb\u884c\u51b3\u7b56\uff0c\u5176\u89c4\u6a21\u76f8\u5bf9\u8f83\u5c0f\uff0c\u4e3b\u8981\u5e94\u7528\u4e8e\u4eba\u8138\u8bc6\u522b\u3001\u63a8\u8350\u7cfb\u7edf\u3001\u98ce\u63a7\u7cfb\u7edf\u7b49\u573a\u666f\u3002\u5b83\u4eec\u5b66\u4e60\u6570\u636e\u4e2d\u7684\u6761\u4ef6\u6982\u7387\u5206\u5e03\uff0c\u7528\u4e8e\u5206\u7c7b\u3001\u9884\u6d4b\u548c\u51b3\u7b56\u4efb\u52a1\u3002<\/li>\n<li data-id=\"ld70c578-Vdb6VTj9\"><strong>\u751f\u6210\u5f0f\u5927\u6a21\u578b\uff1a<\/strong>\u8fd9\u7c7b\u6a21\u578b\u5b66\u4e60\u6570\u636e\u4e2d\u7684\u8054\u5408\u6982\u7387\u5206\u5e03\uff0c\u7528\u4e8e\u751f\u6210\u65b0\u7684\u6570\u636e\u5b9e\u4f8b\uff0c\u5982\u6587\u672c\u3001\u56fe\u50cf\u6216\u97f3\u9891\u3002\u5b83\u4eec\u901a\u5e38\u5177\u6709\u8f83\u5927\u7684\u89c4\u6a21\uff0c\u56e0\u4e3a\u751f\u6210\u65b0\u5185\u5bb9\u9700\u8981\u6df1\u5165\u6d1e\u5bdf\u6570\u636e\u3002\u751f\u6210\u5f0f\u5927\u6a21\u578b\u901a\u5e38\u62e5\u6709\u4e0a\u4ebf\u751a\u81f3\u4e0a\u4e07\u4ebf\u7684\u53c2\u6570\uff0c\u4e3b\u8981\u5e94\u7528\u4e8e\u667a\u80fd\u95ee\u7b54\u3001\u667a\u80fd\u5ba2\u670d\u3001\u667a\u80fd\u5199\u4f5c\u7b49\u573a\u666f\u3002<\/li>\n<\/ul>\n<p>\u968f\u7740\u6df7\u5143 GPT\u3001\u901a\u4e49\u5343\u95ee\u7b49\u5927\u578b\u6a21\u578b\u7684\u76f8\u7ee7\u95ee\u4e16\uff0c\u8fd9\u4e9b\u5148\u8fdb\u7684\u4eba\u5de5\u667a\u80fd\u6280\u672f\u5982\u4eca\u5df2\u5728\u5168\u7403\u8303\u56f4\u5185\u5f15\u53d1\u5e7f\u6cdb\u5173\u6ce8\u4e0e\u70ed\u8bae\u3002\u5728\u6b64\u80cc\u666f\u4e0b\uff0c\u6211\u4eec\u8feb\u5207\u671f\u671b\u80fd\u591f\u5c06\u8fd9\u4e9b\u5927\u6a21\u578b\u6280\u672f\u5f15\u5165\u5b9e\u9645\u751f\u4ea7\u73af\u8282\uff0c\u4ee5\u671f\u63a8\u52a8\u4ea7\u4e1a\u5347\u7ea7\u4e0e\u521b\u65b0\u53d1\u5c55\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s8.51cto.com\/oss\/202412\/20\/4395bb503d4f21e8e3948198daa9fd9cca76ee.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5c3d\u7ba1\u5927\u6a21\u578b\u5728\u4eba\u5de5\u667a\u80fd\u9886\u57df\u53d6\u5f97\u4e86\u663e\u8457\u7684\u8fdb\u5c55\uff0c\u4f46\u5b83\u4eec\u4e5f\u9762\u4e34\u7740\u4e00\u4e9b\u6311\u6218\u3002\u9996\u5148\uff0c\u5927\u6a21\u578b\u7684\u8bad\u7ec3\u6570\u636e\u662f\u9759\u6001\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4eec\u5728\u8bad\u7ec3\u5b8c\u6210\u540e\u65e0\u6cd5\u5b9e\u65f6\u66f4\u65b0\uff0c\u65e0\u6cd5\u7eb3\u5165\u8bad\u7ec3\u4e4b\u540e\u53d1\u751f\u7684\u65b0\u4fe1\u606f\u3002\u56e0\u6b64\uff0c\u5927\u6a21\u578b\u5728\u9762\u5bf9\u540e\u7eed\u51fa\u73b0\u7684\u4e8b\u4ef6\u548c\u4fe1\u606f\u65f6\uff0c\u53ef\u80fd\u4f1a\u8868\u73b0\u51fa\u8ba4\u77e5\u4e0a\u7684\u6ede\u540e\u6027\uff0c\u4ece\u800c\u5bfc\u81f4\u5176\u77e5\u8bc6\u4f53\u7cfb\u9010\u6e10\u8fc7\u65f6\u3002<\/p>\n<p>\u5176\u6b21\uff0c\u5927\u6a21\u578b\u901a\u5e38\u62e5\u6709\u4e0a\u4ebf\u751a\u81f3\u4e0a\u4e07\u4ebf\u7684\u53c2\u6570\uff0c\u8fd9\u4f7f\u5f97\u6bcf\u6b21\u66f4\u65b0\u90fd\u9700\u8981\u5927\u91cf\u7684\u8ba1\u7b97\u8d44\u6e90\uff0c\u5c24\u5176\u662f\u9ad8\u6027\u80fd\u663e\u5361\u3002\u56e0\u6b64\uff0c\u65b0\u4fe1\u606f\u7684\u5f15\u5165\u5bf9\u4e8e\u5df2\u7ecf\u5b66\u4e60\u4e86\u6d77\u91cf\u6570\u636e\u7684\u6a21\u578b\u6765\u8bf4\uff0c\u77ed\u671f\u5185\u7684\u5c11\u91cf\u6570\u636e\u57fa\u672c\u4e0a\u65e0\u6cd5\u4ea7\u751f\u8db3\u591f\u7684\u4fe1\u53f7\u6765\u5f71\u54cd\u5176\u8f93\u51fa\uff0c\u8fd9\u4f7f\u5f97\u6a21\u578b\u66f4\u65b0\u6210\u672c\u6781\u9ad8\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u8bb8\u591a\u4f01\u4e1a\u7684\u79c1\u57df\u77e5\u8bc6\u5e93\u4e0d\u4f1a\u66b4\u9732\u5230\u516c\u7f51\uff0c\u800c\u5927\u6a21\u578b\u5927\u591a\u57fa\u4e8e\u516c\u7f51\u6570\u636e\u8fdb\u884c\u8bad\u7ec3\u3002\u8fd9\u5bfc\u81f4\u5927\u6a21\u578b\u5bf9\u79c1\u57df\u77e5\u8bc6\u5e93\u7684\u8868\u73b0\u80fd\u529b\u8f83\u5dee\uff0c\u9650\u5236\u4e86\u5176\u5728\u4f01\u4e1a\u751f\u4ea7\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n<p>\u9274\u4e8e\u4e0a\u8ff0\u95ee\u9898\uff0cRAG\uff08Retrieval-Augmented Generation\uff09\u6280\u672f\u5e94\u8fd0\u800c\u751f\u3002RAG \u6280\u672f\u901a\u8fc7\u7ed3\u5408\u68c0\u7d22\u548c\u751f\u6210\u7684\u65b9\u6cd5\uff0c\u80fd\u591f\u66f4\u597d\u5730\u5904\u7406\u548c\u5229\u7528\u79c1\u57df\u77e5\u8bc6\u5e93\uff0c\u4ece\u800c\u63d0\u5347\u5927\u6a21\u578b\u5728\u4f01\u4e1a\u751f\u4ea7\u4e2d\u7684\u5e94\u7528\u6548\u679c\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s3.51cto.com\/oss\/202412\/20\/56c607667439ed13a5e88459cdae4c986dcdd6.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>RAG \u6280\u672f\uff0c\u5373\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u6280\u672f\uff0c\u662f\u4e00\u79cd\u901a\u8fc7\u68c0\u7d22\u5916\u90e8\u77e5\u8bc6\u5e93\u6765\u63d0\u5347\u5927\u6a21\u578b\u751f\u6210\u6548\u679c\u7684\u6280\u672f\u65b9\u6848\u3002\u8be5\u6280\u672f\u5728\u5927\u6a21\u578b\u57fa\u7840\u4e0a\uff0c\u901a\u8fc7\u5bf9\u672c\u5730\u77e5\u8bc6\u5e93\u8fdb\u884c\u68c0\u7d22\uff0c\u4ee5\u589e\u5f3a\u5927\u6a21\u578b\u8f93\u51fa\u7684\u51c6\u786e\u6027\u548c\u76f8\u5173\u6027\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s5.51cto.com\/oss\/202412\/20\/23dfdb2006eb136016591104e30b0fd3bf6a66.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>RAG \u6280\u672f\u4e3b\u8981\u5e94\u7528\u4e8e\u77e5\u8bc6\u95ee\u7b54\u3001\u667a\u80fd\u5ba2\u670d\u3001\u4e13\u5bb6\u7cfb\u7edf\u7b49\u573a\u666f\uff0c\u5176\u5de5\u4f5c\u6d41\u7a0b\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u4e94\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<p>\u2460\u53d1\u8d77\u95ee\u9898\uff1a\u7528\u6237\u63d0\u51fa\u95ee\u9898\uff0cRAG \u7cfb\u7edf\u9996\u5148\u5bf9\u95ee\u9898\u8fdb\u884c\u5904\u7406\uff0c\u5305\u62ec\u6539\u5199\u3001\u6269\u5199\u6216\u4f18\u5316\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u5411\u91cf\u5f62\u5f0f\uff0c\u4ee5\u4fbf\u4e8e\u540e\u7eed\u5904\u7406\u3002<\/p>\n<p>\u2461\u641c\u7d22\u6587\u6863\uff1a\u5728 RAG \u7cfb\u7edf\u7684\u77e5\u8bc6\u5e93\u4e2d\u8fdb\u884c\u68c0\u7d22\uff0c\u5bfb\u627e\u4e0e\u95ee\u9898\u76f8\u5173\u7684\u6587\u6863\u6216\u4fe1\u606f\u7247\u6bb5\u3002<\/p>\n<p>\u2462Prompt \u7ec4\u88c5\uff1a\u5c06\u68c0\u7d22\u5230\u7684\u7ed3\u679c\u4e0e\u539f\u59cb\u95ee\u9898\u8fdb\u884c\u6574\u5408\uff0c\u5f62\u6210\u4e00\u4e2a prompt \u63d0\u793a\uff0c\u8be5\u63d0\u793a\u5c06\u4f5c\u4e3a\u8f93\u5165\u53d1\u9001\u5230\u5927\u6a21\u578b\u3002<\/p>\n<p>\u2463\u6a21\u578b\u751f\u6210\uff1a\u5927\u6a21\u578b\u6839\u636e prompt \u751f\u6210\u7b54\u6848\uff0c\u8fd9\u4e00\u6b65\u9aa4\u4f9d\u8d56\u4e8e\u6a21\u578b\u7684\u9884\u8bad\u7ec3\u77e5\u8bc6\u548c\u68c0\u7d22\u5230\u7684\u5916\u90e8\u4fe1\u606f\u3002<\/p>\n<p>\u2464\u7b54\u6848\u8fd4\u56de\uff1a\u751f\u6210\u7684\u7b54\u6848\u7ecf\u8fc7\u683c\u5f0f\u5904\u7406\u540e\uff0c\u8fd4\u56de\u7ed9\u7528\u6237\uff0c\u5b8c\u6210\u6574\u4e2a\u95ee\u7b54\u6d41\u7a0b\u3002<\/p>\n<p>\u8fd9\u4e00\u6d41\u7a0b\u5c55\u793a\u4e86 RAG \u6280\u672f\u5982\u4f55\u901a\u8fc7\u7ed3\u5408\u68c0\u7d22\u548c\u751f\u6210\u7684\u65b9\u6cd5\uff0c\u63d0\u5347\u5927\u6a21\u578b\u5728\u7279\u5b9a\u573a\u666f\u4e0b\u7684\u5e94\u7528\u6548\u679c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u4e94\u3001\u4e00\u7ad9\u5f0f\u5411\u91cf\u68c0\u7d22\u4e0e RAG \u65b9\u6848<\/h3>\n<p>\u4e0b\u9762\u901a\u8fc7\u4e00\u4e2a\u5177\u4f53\u7684\u843d\u5730\u6848\u4f8b\u6765\u8fdb\u4e00\u6b65\u63a2\u8ba8 RAG \u6280\u672f\u7684\u5e94\u7528\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s2.51cto.com\/oss\/202412\/20\/b2f45ed481c06b1bf21586eb19dfd2a2dd0b64.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u4ee5 Langchain \u4e3a\u4ee3\u8868\u7684\u4f17\u591a\u516c\u5f00 RAG \u89e3\u51b3\u65b9\u6848\uff0c\u503e\u5411\u4e8e\u91c7\u7528\u7eaf\u5411\u91cf\u68c0\u7d22\u65b9\u5f0f\u3002\u6b63\u5982\u524d\u6587\u6240\u8ff0\uff0c\u7eaf\u5411\u91cf\u68c0\u7d22\u7684\u4f18\u70b9\u5728\u4e8e\u6d41\u7a0b\u7b80\u5355\u3001\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u5f3a\uff0c\u4f46\u5176\u7f3a\u70b9\u662f\u7cbe\u51c6\u6027\u8f83\u5dee\uff0c\u56e0\u4e3a\u5176\u4f9d\u8d56\u4e8e\u76f8\u4f3c\u5ea6\u68c0\u7d22\uff0c\u96be\u4ee5\u5904\u7406\u5173\u952e\u8bcd\uff0c\u4e14\u65e0\u6cd5\u8868\u8fbe\u6587\u6863\u7684\u989d\u5916\u5c5e\u6027\u3002<\/p>\n<p>\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u57fa\u4e8e\u5012\u6392\u7d22\u5f15\u7684\u5168\u6587\u68c0\u7d22\u867d\u7136\u7cbe\u51c6\u5ea6\u9ad8\uff0c\u4f46\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u8f83\u5f31\u3002\u56e0\u6b64\uff0c\u817e\u8baf ES \u5728 RAG \u9886\u57df\u63d0\u51fa\u4e86\u4e00\u79cd\u57fa\u4e8e\u6df7\u5408\u68c0\u7d22\u7684\u4e00\u7ad9\u5f0f\u89e3\u51b3\u65b9\u6848\uff0c\u5373\u7ed3\u5408\u5411\u91cf\u68c0\u7d22\u548c\u6587\u672c\u68c0\u7d22\u7684\u591a\u8def\u53ec\u56de\u65b9\u5f0f\uff0c\u4ee5\u5145\u5206\u53d1\u6325\u4e24\u8005\u7684\u4f18\u52bf\uff0c\u53d6\u957f\u8865\u77ed\u3002<\/p>\n<p>\u8be5\u65b9\u6848\u7684\u5148\u8fdb\u6027\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a\u9996\u5148\uff0c\u5168\u6587\u68c0\u7d22\u57fa\u4e8e Lucene \u7684 BM25 \u8bc4\u5206\u7b97\u6cd5\uff0c\u8fd9\u662f\u5728 TF-IDF \u57fa\u7840\u4e0a\u7684\u4e00\u6b21\u5347\u7ea7\uff0c\u589e\u52a0\u4e86\u4e0e\u95ee\u9898\u76f8\u5173\u6027\u7684\u8bc4\u5206\u3002\u540c\u65f6\uff0c\u5f15\u5165\u4e86\u591a\u8bed\u8a00\u5206\u8bcd\uff0c\u5305\u62ec\u4e2d\u6587\u3001\u65e5\u6587\u3001\u97e9\u6587\u3001\u62fc\u97f3\u7b49\uff0c\u5e76\u8bbe\u8ba1\u4e86 QQ \u5206\u8bcd\uff0c\u5185\u542b\u767e\u4e07\u7ea7\u4e2d\u6587\u8bcd\u6c47\uff0c\u57fa\u672c\u8986\u76d6\u4e86\u7edd\u5927\u591a\u6570\u7684\u4e2d\u6587\u573a\u666f\uff0c\u5206\u8bcd\u6548\u679c\u663e\u8457\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s8.51cto.com\/oss\/202412\/20\/3228873673dacf11917036fa508de0d123be47.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5176\u6b21\uff0c\u5411\u91cf\u68c0\u7d22\u57fa\u4e8e\u539f\u751f HNSW \u7b97\u6cd5\uff0c\u5e76\u5728\u6b64\u57fa\u7840\u4e0a\u81ea\u7814\u6784\u5efa\u4e86\u9ad8\u6027\u80fd\u3001\u9ad8\u53ec\u56de\u7387\u7684\u5411\u91cf\u7d22\u5f15\u3002\u7ecf\u8fc7\u9a8c\u8bc1\uff0c\u6211\u4eec\u7684\u591a\u8def\u53ec\u56de\u65b9\u6848\u5728\u53ec\u56de\u7387\u4e0a\u76f8\u5bf9\u4e8e\u7eaf\u5411\u91cf\u68c0\u7d22\u548c\u6587\u672c\u68c0\u7d22\u6709\u5927\u5e45\u63d0\u5347\uff0c\u6700\u9ad8\u8fbe\u5230\u4e86 95%\uff0c\u57fa\u672c\u6ee1\u8db3\u4e86\u5927\u90e8\u5206\u5546\u7528\u573a\u666f\u548c ToB\/ToC \u573a\u666f\u7684\u53ec\u56de\u7387\u8981\u6c42\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u7684\u65b9\u6848\u5df2\u88ab\u6df7\u5143\u6536\u5f55\u4e3a RAG \u591a\u8def\u53ec\u56de\u7684\u6807\u51c6\u89e3\u51b3\u65b9\u6848\uff0c\u5e76\u5728\u516c\u53f8\u5185\u5916\u90e8\u652f\u6301\u4e86 WXG\u3001PCG\u3001TEG \u7b49\u5927\u578b\u5728\u7ebf\u77e5\u8bc6\u5e93\u7684 RAG \u9879\u76ee\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5728\u5927\u578b\u9879\u76ee\u4e2d\u9047\u5230\u7684\u4e00\u4e9b\u6311\u6218\u3002\u81ea\u5e74\u521d\u5f00\u59cb\uff0c\u6211\u4eec\u63a5\u624b\u4e86\u5185\u90e8\u7684\u4e00\u4e2a\u5927\u578b\u5728\u7ebf\u77e5\u8bc6\u5e93\u9879\u76ee\uff0c\u8be5\u9879\u76ee\u6d89\u53ca\u6d77\u91cf\u4e66\u7c4d\u6784\u6210\u7684\u767e\u4ebf\u7ea7\u5411\u91cf\u68c0\u7d22\u6570\u636e\u89c4\u6a21\uff0c\u4e14\u8981\u6c42\u68c0\u7d22\u5ef6\u8fdf\u5728\u767e\u6beb\u79d2\u4ee5\u5185\u3002\u539f\u751f ES \u57fa\u4e8e HNSW \u7b97\u6cd5\uff0c\u8fd9\u662f\u4e00\u79cd\u4e3b\u6d41\u7684\u57fa\u4e8e\u56fe\u7ed3\u6784\u7684\u5411\u91cf\u8fd1\u4f3c\u641c\u7d22\u7b97\u6cd5\uff0c\u5176\u4f18\u70b9\u5728\u4e8e\u53ec\u56de\u7387\u548c\u6027\u80fd\u90fd\u8f83\u9ad8\uff0c\u540c\u7b49\u53ec\u56de\u7387\u4e0b\u6027\u80fd\u53ef\u8fbe Faiss \u7684 20\u00a0\u500d\u3002\u7136\u800c\uff0c\u5176\u7f3a\u70b9\u5728\u4e8e\u7eaf\u5185\u5b58\u64cd\u4f5c\uff0c\u8d44\u6e90\u6d88\u8017\u6781\u9ad8\u3002\u5728\u767e\u4ebf\u77e5\u8bc6\u5e93\u7684\u573a\u666f\u4e0b\uff0c\u8d44\u6e90\u4f7f\u7528\u51e0\u4e4e\u65e0\u6cd5\u6ee1\u8db3\uff0c\u9884\u4f30\u53ef\u80fd\u9700\u8981\u4e94\u516d\u767e\u53f0\u673a\u5668\uff0c\u8fd9\u662f\u4e00\u4e2a\u5de8\u5927\u7684\u89c4\u6a21\u3002<\/p>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u964d\u672c\u589e\u6548\uff0c\u6211\u4eec\u901a\u8fc7\u5bf9 ES \u8fdb\u884c\u6df1\u5ea6\u6539\u9020\uff0c\u6838\u5fc3\u539f\u7406\u662f\u8fdb\u7a0b\u5185\u5b58\u4e0e\u7cfb\u7edf MMAP \u6587\u4ef6\u6620\u5c04\u7684\u52a8\u6001\u7ed3\u5408\u3002\u5177\u4f53\u6d41\u7a0b\u5982\u4e0b\uff1a\u5f53\u6570\u636e\u5199\u5165\u5185\u5b58\u65f6\uff0c\u9996\u5148\u5728\u5185\u5b58\u4e2d\u6784\u5efa\u4e0a\u5c42\u5411\u91cf\u7d22\u5f15\u548c\u5012\u6392\u7d22\u5f15\uff0c\u7136\u540e\u5c06\u7ec6\u7c92\u5ea6\u7684\u5411\u91cf\u6570\u636e\u548c\u5b57\u6bb5\u4fe1\u606f\u8fdb\u884c\u6301\u4e45\u5316\uff0c\u7f16\u7801\u5b58\u653e\u5230\u78c1\u76d8\u4e0a\uff0c\u518d\u901a\u8fc7\u9884\u52a0\u8f7d Preload \u5230 MMap FS\uff0c\u5728 MMap FS \u4e2d\u8fdb\u884c\u5feb\u901f\u68c0\u7d22\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u5927\u5e45\u964d\u4f4e\u4e86 HNSW \u7684\u5185\u5b58\u8d44\u6e90\u6d88\u8017\u3002\u540c\u65f6\uff0c\u901a\u8fc7\u9ad8\u6548\u7684\u6587\u4ef6\u7f16\u7801\u3001MMAP \u6587\u4ef6\u7684\u52a8\u6001\u7ba1\u7406\u4ee5\u53ca\u5411\u91cf\u7684\u6807\u91cf\u5316\uff0c\u63d0\u5347\u4e86\u68c0\u7d22\u6027\u80fd\u3002<\/p>\n<p>\u8fd9\u6837\u505a\u7684\u76ee\u7684\u662f\uff1a<\/p>\n<ul data-id=\"ua73dd4b-Ncl1GllK\">\n<li data-id=\"ld70c578-YGrN4T57\">\u5f53\u8fdb\u7a0b\u5185\u5b58\u5145\u8db3\u65f6\uff0c\u5f53\u7eaf\u5185\u5b58\u5411\u91cf&amp;\u5012\u6392\u7d22\u5f15\u68c0\u7d22\u5e93\u4f7f\u7528\uff0c\u4ee5\u4fdd\u8bc1\u6700\u4f73\u7684\u6027\u80fd\uff1b<\/li>\n<li data-id=\"ld70c578-5uRnTLuR\">\u5f53\u8fdb\u7a0b\u4e0d\u8db3\u4ee5\u5b58\u653e\u5168\u90e8\u7d22\u5f15\u65f6\uff0c\u53ef\u4ee5\u5229\u7528 MMapFS \u6765\u505a\u5185\u5b58\u7684\u538b\u7f29\u8ddf\u70ed\u7d22\u5f15\u7684\u8bbf\u95ee\u52a0\u901f\uff1b<\/li>\n<li data-id=\"ld70c578-uE3NSch6\">\u5f53\u8fdb\u7a0b + MMapFS \u6587\u4ef6\u7cfb\u7edf\u90fd\u5b58\u653e\u4e0d\u4e0b\u5168\u90e8\u5411\u91cf\u7d22\u5f15\u65f6\uff0c\u6b64\u65f6\u81ea\u52a8\u964d\u7ea7\u4e3a\u78c1\u76d8\u5411\u91cf\u68c0\u7d22\u7b97\u6cd5\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u6df1\u5ea6\u6539\u9020\u7684\u67b6\u6784\u7a81\u7834\u4e86\u4f20\u7edf\u7684 HNSW \u7b97\u6cd5\u53d7\u5185\u5b58\u8d44\u6e90\u7684\u9650\u5236\uff0c\u53ea\u9700\u8981\u539f\u672c\u7684 1\/10 ~ 1\/20 \u5de6\u53f3\u7684\u5185\u5b58\u5c31\u53ef\u4ee5\u5c06\u5411\u91cf\u7d22\u5f15\u5168\u90e8\u52a0\u8f7d\u8fdb\u5185\u5b58\u3002\u5411\u91cf\u89c4\u6a21\u8d8a\u5927\uff0c\u5b9e\u9645\u4e0a\u53ef\u538b\u7f29\u8282\u7701\u7684\u5185\u5b58\u5c31\u8d8a\u591a\u3002\u540c\u65f6\u6211\u4eec\u901a\u8fc7\u9ad8\u6548\u7684\u6587\u4ef6\u7f16\u7801\u3001MMapFS \u6587\u4ef6\u7684\u52a8\u6001\u7ba1\u7406\uff0c\u5411\u91cf\u7684 int\/byte \u91cf\u5316\uff0c\u4f9d\u7136\u4fdd\u6301\u4e86\u57fa\u672c\u65e0\u635f\u7684\u5199\u5165\u8ddf\u67e5\u8be2\u6027\u80fd\u3002\u4e0d\u8db3\u4e4b\u5904\u5728\u4e8e\u9996\u6b21\u8bfb\u53d6\u65f6\u9884\u52a0\u8f7d\u5230 MMapFS \u6709\u4e00\u4e2a\u8fc7\u7a0b\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u4e3b\u52a8\u89e6\u53d1 PreLoad \u6765\u52a0\u901f\u8fd9\u4e2a\u8fc7\u7a0b\u3002<\/p>\n<p>\u7ecf\u8fc7\u9a8c\u8bc1\uff0c\u6211\u4eec\u7684\u65b9\u6848\u5728\u5185\u5b58\u8d44\u6e90\u6d88\u8017\u4e0a\u964d\u4f4e\u4e86 80%\uff0c\u5728\u540c\u7b49\u8d44\u6e90\u60c5\u51b5\u4e0b\uff0c\u6027\u80fd\u63d0\u5347\u4e86 5 \u5230 10 \u500d\u3002\u76f8\u5bf9\u4e8e\u5f00\u6e90 ES \u7248\u672c\uff0c\u817e\u8baf ES \u80fd\u591f\u5b9e\u73b0 10 \u500d\u7684\u6027\u80fd\u63d0\u5347\uff0c\u8fbe\u5230\u4e86\u4e1a\u754c\u9886\u5148\u6c34\u5e73\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s7.51cto.com\/oss\/202412\/20\/f8a49570107f76b105d61987c2f282d721db06.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u968f\u540e\uff0c\u6211\u4eec\u5c06\u8d44\u6e90\u4f18\u5316\u90e8\u5206\u56de\u9988\u5230\u5f00\u6e90 ES \u793e\u533a\u548c Lucene \u793e\u533a\uff0c\u5f97\u5230\u4e86\u793e\u533a\u7684\u9ad8\u5ea6\u8ba4\u53ef\u548c\u5e7f\u6cdb\u5ba3\u4f20\u3002\u8fd9\u4e0d\u4ec5\u63d0\u5347\u4e86\u6211\u4eec\u7684\u6280\u672f\u5f71\u54cd\u529b\uff0c\u8fd8\u6536\u5230\u4e86 Elasticsearch \u521b\u59cb\u4eba\u7684\u611f\u8c22\u4fe1\u3002\u672a\u6765\uff0c\u6211\u4eec\u5c06\u5728 AI \u65f6\u4ee3\u7ee7\u7eed\u4e0e\u5f00\u6e90 ES \u793e\u533a\u4fdd\u6301\u7d27\u5bc6\u5408\u4f5c\uff0c\u5171\u540c\u63a8\u52a8\u6280\u672f\u7684\u8fdb\u6b65\u4e0e\u53d1\u5c55\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202412\/20\/36c8060323a483be46b98214fcd8b17be4d0bc.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u4e3a\u4e86\u66f4\u597d\u5730\u670d\u52a1\u4e8e\u66f4\u591a\u5ba2\u6237\uff0c\u6211\u4eec\u4e0e\u4e2d\u56fd\u4fe1\u901a\u9662\u4e91\u8ba1\u7b97\u5927\u6570\u636e\u7814\u7a76\u6240\u8054\u540840\u4f59\u5bb6\u4f01\u4e1a\u7684 70 \u591a\u4f4d\u4e13\u5bb6\uff0c\u5171\u540c\u7f16\u5236\u5b8c\u6210\u4e86 RAG \u6280\u672f\u6807\u51c6\u3002\u817e\u8baf ES \u4f5c\u4e3a\u56fd\u5185\u516c\u6709\u4e91\u9996\u4e2a\u4ece\u81ea\u7136\u8bed\u8a00\u5230\u5411\u91cf\u751f\u6210\u3001\u5b58\u50a8\u3001\u68c0\u7d22\u5e76\u4ee5\u5927\u6a21\u578b\u96c6\u6210\u7aef\u5230\u7aef\u7684\u4e00\u7ad9\u5f0f\u5e73\u53f0\uff0c\u817e\u8baf\u4e91\u4f5c\u4e3a\u6838\u5fc3\u53c2\u4e0e\u4f01\u4e1a\uff0c\u4e5f\u662f\u9996\u4e2a\u901a\u8fc7 RAG \u6743\u5a01\u8ba4\u8bc1\u7684\u6807\u51c6\u4f01\u4e1a\u3002\u8be5\u6807\u51c6\u4e3b\u8981\u5305\u542b\u4e94\u4e2a\u80fd\u529b\u57df\uff1a\u77e5\u8bc6\u5e93\u6784\u5efa\u80fd\u529b\u3001\u77e5\u8bc6\u68c0\u7d22\u80fd\u529b\u3001\u5185\u5bb9\u751f\u6210\u80fd\u529b\u3001\u8d28\u91cf\u8bc4\u4f30\u80fd\u529b\u548c\u5e73\u53f0\u80fd\u529b\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202412\/20\/f59e3b936b2302a211d1857e3d9c617a869f0f.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u817e\u8baf\u4e91 ES \u7684\u529f\u80fd\uff0c\u5e76\u63a2\u8ba8\u5176\u4e0e\u4e1a\u754c\u73b0\u6709\u6570\u636e\u5e93\u7684\u533a\u522b\u3002\u76ee\u524d\uff0c\u4e1a\u754c\u5df2\u6709\u8bb8\u591a\u76f8\u5173\u6570\u636e\u5e93\uff0c\u5982 Milvus \u548c Chroma \u7b49\u5411\u91cf\u6570\u636e\u5e93\uff0c\u4ee5\u53ca MySQL \u548c PostgreSQL \u7b49\u4f20\u7edf\u6570\u636e\u5e93\uff0c\u5b83\u4eec\u4e5f\u96c6\u6210\u4e86\u5411\u91cf\u68c0\u7d22\u529f\u80fd\u3002\u7136\u800c\uff0c\u817e\u8baf\u4e91 ES \u4e3b\u8981\u4e3a RAG \u5e94\u7528\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u8d85\u8d8a\u4e86\u4f20\u7edf\u5411\u91cf\u6570\u636e\u5e93\u548c\u5176\u4ed6\u6570\u636e\u5e93\u7684\u89e3\u51b3\u65b9\u6848\u8303\u56f4\u3002<\/p>\n<p>\u6211\u4eec\u5728\u5b58\u50a8\u3001\u641c\u7d22\u548c\u751f\u6210\u5411\u91cf\u7684\u57fa\u7840\u4e0a\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f00\u7bb1\u5373\u7528\u7684\u8bad\u7ec3\u6a21\u578b\uff0c\u5e76\u652f\u6301\u6df7\u5408\u641c\u7d22\uff0c\u5373\u57fa\u4e8e\u6587\u672c\u548c\u5411\u91cf\u7684\u68c0\u7d22\u3002\u7528\u6237\u53ef\u4ee5\u7075\u6d3b\u9009\u62e9\u5d4c\u5165\u6a21\u578b\uff0c\u5e76\u4eab\u53d7\u8fc7\u6ee4\u3001\u5207\u7247\u3001\u805a\u5408\u3001\u81ea\u52a8\u8865\u5168\u3001\u641c\u7d22\u5206\u6790\u3001\u6587\u6863\u7ea7\u5b89\u5168\u4ee5\u53ca\u672c\u5730\u4e91\u6df7\u5408\u7b49\u529f\u80fd\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s4.51cto.com\/oss\/202412\/20\/d8ab6b63726befa95ba579c009bdd531fbb223.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u7528\u6237\u5728\u4f7f\u7528\u817e\u8baf ES \u65f6\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u6211\u4eec\u63d0\u4f9b\u7684\u81ea\u6709\u4f18\u5316\u6a21\u578b ELSER\uff0c\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8e\u7a00\u758f\u6a21\u578b\u7684\u4f18\u5316\u65b9\u6848\u3002\u6b64\u5916\uff0cES \u8fd8\u5185\u7f6e\u4e86\u5fae\u8f6f\u7684 Multilingual-e5 \u6a21\u578b\uff0c\u7528\u6237\u4e5f\u53ef\u4ee5\u4e0a\u4f20\u81ea\u5df1\u5fae\u8c03\u8bad\u7ec3\u597d\u7684 Transformer Bert \u6a21\u578b\u5230 ES \u4e2d\u8fdb\u884c\u90e8\u7f72\u3002\u540c\u65f6\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u8c03\u7528 OpenAI \u548c Hugging Face \u4e0a\u7684\u6a21\u578b\u63a5\u53e3\uff0c\u8fdb\u884c\u6570\u636e\u7684\u5411\u91cf\u5316\u5904\u7406\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s6.51cto.com\/oss\/202412\/20\/e80111555af84e2606e250d42eda21ab647291.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5728\u7ed3\u679c\u91cd\u6392\u65b9\u9762\uff0cES \u63d0\u4f9b\u4e86\u4e00\u79cd\u5012\u6570\u878d\u5408\u6392\u5e8f\u7b97\u6cd5\uff0c\u8be5\u7b97\u6cd5\u4e3b\u8981\u6839\u636e\u6bcf\u4e2a\u7ed3\u679c\u5728\u7ed3\u679c\u96c6\u4e2d\u7684\u6392\u5e8f\u4f4d\u7f6e\uff0c\u800c\u4e0d\u662f\u57fa\u4e8e\u76f8\u5173\u6027\u5206\u6570\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u597d\u5904\u5728\u4e8e\uff0c\u4e0d\u9700\u8981\u8fdb\u884c\u5f52\u4e00\u5316\u8c03\u6574\uff0c\u5c31\u80fd\u5b9e\u73b0\u76f8\u5bf9\u8f83\u597d\u7684\u6392\u5e8f\u6548\u679c\u3002\u7528\u6237\u53ef\u4ee5\u51cf\u5c11\u5bf9\u76f8\u5173\u6027\u7684\u7ec6\u5fae\u8c03\u6574\uff0c\u4ece\u800c\u5927\u5927\u63d0\u9ad8\u4fbf\u5229\u6027\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s3.51cto.com\/oss\/202412\/20\/b1213e1288b613c1856427610d8df4bfd05ea4.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>ES \u7684\u6df7\u5408\u641c\u7d22\u529f\u80fd\u5e76\u975e\u7b80\u5355\u5730\u5c06\u6587\u672c\u641c\u7d22\u548c\u5411\u91cf\u641c\u7d22\u62fc\u51d1\u5728\u4e00\u8d77\u3002\u5728\u5e95\u5c42\u5f15\u64ce\u65b9\u9762\uff0c\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u6587\u672c\u7d22\u5f15\u3001\u5411\u91cf\u7d22\u5f15\u548c\u6570\u503c\u7d22\u5f15\uff0c\u8fd8\u5728\u67e5\u8be2\u5206\u6790\u7406\u89e3\u65b9\u9762\u63d0\u4f9b\u4e86\u5206\u8bcd\u3001\u540c\u4e49\u8bcd\u8bcd\u5e93\u3001\u8bcd\u6743\u91cd\u8c03\u6574\u3001\u6587\u672c\u5206\u7c7b\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u7b49\u529f\u80fd\u3002\u5728\u591a\u8def\u53ec\u56de\u65b9\u9762\uff0c\u53ef\u4ee5\u5bf9\u6bcf\u4e2a\u67e5\u8be2\u7684\u6587\u672c\u76f8\u5173\u6027\u3001\u76f8\u4f3c\u5ea6\u548c\u7c7b\u76ee\u76f8\u5173\u6027\u8fdb\u884c\u5fae\u8c03\u3002\u5bf9\u4e8e\u591a\u8def\u53ec\u56de\u7684\u7ed3\u679c\uff0c\u8fdb\u884c\u6df7\u5408\u6253\u5206\uff0c\u5e76\u63d0\u4f9b\u4e86 RF \u7b97\u6cd5\u548c LTR\uff08Learning to Rank\uff09\u6a21\u578b\uff0c\u7528\u4e8e\u7ed3\u679c\u7684\u91cd\u6392\u5e8f\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s4.51cto.com\/oss\/202412\/20\/453b69194c7c69430d8311a4ce5b92c735d039.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>ES \u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4e13\u6709\u7684\u673a\u5668\u5b66\u4e60\u8282\u70b9\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u4e13\u6709\u673a\u5668\u5b66\u4e60\u8282\u70b9\u6765\u4e0a\u4f20\u3001\u7ba1\u7406\u548c\u90e8\u7f72\u5411\u91cf\u6a21\u578b\uff0c\u4e00\u7ad9\u5f0f\u5b8c\u6210\u5411\u91cf\u751f\u6210\u548c\u68c0\u7d22\uff0c\u4ece\u800c\u6709\u6548\u63d0\u5347\u5411\u91cf\u63a8\u7406\u80fd\u529b\u3002\u540c\u65f6\uff0c\u8fd9\u4e9b\u8282\u70b9\u4e0e\u6570\u636e\u8282\u70b9\u9694\u79bb\uff0c\u4fdd\u969c\u4e86\u5728\u7ebf\u4e1a\u52a1\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s7.51cto.com\/oss\/202412\/20\/d43fa6f753875b477c4133814f83c39f1a1ca5.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u4e3a\u4e86\u6ee1\u8db3\u5fae\u4fe1\u3001QQ \u7b49\u6d77\u91cf\u6570\u636e\u63a8\u7406\u7684\u9700\u6c42\uff0cES \u4e0e\u516c\u53f8\u81ea\u7814\u7684\u7d2b\u9704 AI \u82af\u7247\u76f8\u7ed3\u5408\u3002\u7531\u4e8e\u539f\u751f ES \u57fa\u4e8e CPU \u63a8\u7406\uff0c\u76ee\u524d\u4e0d\u652f\u6301 GPU\uff0c\u56e0\u6b64\u6211\u4eec\u91c7\u7528\u4e86\u81ea\u7814 AI \u82af\u7247\u7d2b\u9704\u7684\u6700\u65b0 V2 \u7248\u672c\u3002\u76f8\u5bf9\u4e8e\u793e\u533a ES\uff0c\u539f\u751f ES \u7684\u6027\u80fd\u63d0\u5347\u4e86 18 \u500d\u3002\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u7ad9\u5f0f\u89e3\u51b3\u65b9\u6848\uff0c\u7528\u6237\u53ea\u9700\u8f93\u5165\u4e00\u6761\u547d\u4ee4\uff0c\u5373\u53ef\u5b8c\u6210\u4ece\u5411\u91cf\u751f\u6210\u3001\u5411\u91cf\u68c0\u7d22\u5230\u6df7\u5408\u68c0\u7d22\uff0c\u76f4\u81f3\u8f93\u51fa\u7ed3\u679c\u7684\u5168\u6d41\u7a0b\u64cd\u4f5c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u516d\u3001\u6848\u4f8b\u5b9e\u8df5<\/h3>\n<p>\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4e00\u4e2a\u5177\u4f53\u7684\u5e94\u7528\u6848\u4f8b\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s7.51cto.com\/oss\/202412\/20\/47624a020953ba4d2b6281dbbee33ac95c66c7.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u8be5\u5e73\u53f0\u63d0\u4f9b\u4e86\u6d77\u91cf\u6570\u5b57\u4e66\u7c4d\u9605\u8bfb\u670d\u52a1\uff0c\u5e76\u6700\u8fd1\u63a8\u51fa\u4e86\u4e00\u4e2a\u65b0\u529f\u80fd\u2014\u2014AI \u95ee\u4e66\u3002AI \u95ee\u4e66\u4e3b\u8981\u63d0\u4f9b\u4e66\u7c4d\u5185\u5bb9\u7684\u667a\u80fd\u68c0\u7d22\uff0c\u7528\u6237\u5728\u9605\u8bfb\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e0d\u7406\u89e3\u7684\u5185\u5bb9\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7 AI \u95ee\u4e66\u529f\u80fd\u5728\u5f53\u524d\u4e66\u7c4d\u4e2d\u641c\u7d22\u76f8\u5173\u7b54\u6848\uff0c\u800c\u4e0d\u662f\u4f9d\u8d56\u4e8e\u6df7\u5143\u7b49\u5927\u6a21\u578b\u3002\u8fd9\u662f\u56e0\u4e3a\u5927\u6a21\u578b\u53ef\u80fd\u65e0\u6cd5\u6839\u636e\u7279\u5b9a\u4e66\u7c4d\u7684\u5185\u5bb9\u7ed9\u51fa\u51c6\u786e\u56de\u7b54\uff0c\u800c AI \u95ee\u4e66\u5219\u57fa\u4e8e RAG \u6280\u672f\uff0c\u80fd\u591f\u6839\u636e\u4e66\u7c4d\u7684\u8bed\u4e49\u5c1d\u8bd5\u56de\u7b54\u7528\u6237\u7684\u95ee\u9898\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u7528\u6237\u5728 AI \u95ee\u4e66\u4e2d\u8f93\u5165\u201c\u9a6c\u514b\u601d\u201d\uff0c\u7cfb\u7edf\u4f1a\u8f93\u51fa\u9a6c\u514b\u601d\u5728\u67d0\u672c\u4e66\u4e2d\u7684\u8be6\u7ec6\u8d44\u6599\uff0c\u5e76\u5f15\u7528\u76f8\u5173\u4e66\u7c4d\u3002\u6b64\u5916\uff0c\u7cfb\u7edf\u8fd8\u4f1a\u6839\u636e\u7528\u6237\u7684\u95ee\u9898\u8fdb\u884c\u62d3\u5c55\uff0c\u63d0\u4f9b\u66f4\u591a\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s4.51cto.com\/oss\/202412\/20\/93fb6ac3188e18956ae9843d75fd3e0c03ed9d.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u8fd9\u4e2a\u77e5\u8bc6\u5e93\u5e73\u53f0\u6700\u521d\u5e76\u672a\u4f7f\u7528\u817e\u8baf\u4e91 ES\uff0c\u56e0\u6b64\u9047\u5230\u4e86\u4ee5\u4e0b\u6280\u672f\u6311\u6218\uff1a<\/p>\n<ul data-id=\"ua73dd4b-TU9cIQTB\">\n<li data-id=\"ld70c578-YMXNYbOb\">\u6574\u4f53\u6570\u636e\u8d85 10 \u4ebf\u7ea7\u5411\u91cf\u89c4\u6a21\uff0c\u5b58\u50a8\u6210\u672c\u9ad8\u3002\u65e9\u671f\u8bc4\u4f30\u7684\u975e ES \u65b9\u6848\uff0c\u4e3a\u4e86\u6ee1\u8db3\u6beb\u79d2\u7ea7\u67e5\u8be2\uff0c\u9700\u8981\u7f13\u5b58\u5168\u90e8\u6570\u636e\u5230\u5185\u5b58\u4e2d\uff0c\u5219 30 \u4ebf 768 \u7ef4\u7684\u5411\u91cf\uff0c\u9700\u8981\u8d85\u8fc7 400 \u53f0 64G \u673a\u5668\uff0c\u8fd0\u8425\u6210\u672c\u767e\u4e07\u7ea7\u3002<\/li>\n<li data-id=\"ld70c578-nY43M5EI\">\u8fd0\u7ef4\u6210\u672c\u9ad8\uff1a\u9664\u4e86\u5168\u6587\u68c0\u7d22\uff0c\u540c\u65f6\u8fd8\u9700\u90e8\u7f72\u5411\u91cf\u5316\u670d\u52a1\uff0c\u5728\u5916\u90e8\u8fdb\u884c\u5411\u91cf\u5316\u540e\uff0c\u5199\u5165\u5230\u5411\u91cf\u6570\u636e\u5e93\uff0c\u540c\u65f6\u5411\u91cf\u6570\u636e\u5e93\u4e0d\u5b58\u50a8\u539f\u59cb\u6587\u672c\u4fe1\u606f\uff0c\u8fd8\u9700\u8981\u989d\u5916\u5b58\u653e\u5230\u5168\u6587\u6570\u636e\u5e93\uff0c\u8ddf\u6587\u672c\u7684\u7d22\u5f15\u4fe1\u606f\uff0c\u76f8\u5f53\u4e8e\u9700\u8981\u540c\u65f6\u56db\u5957\u7cfb\u7edf\u3002<\/li>\n<li data-id=\"ld70c578-4M726KrL\">\u5f00\u53d1\u6210\u672c\u9ad8\uff1a\u8c03\u8bd5\u53ec\u56de\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u5728\u5916\u90e8\u8fdb\u884c\u5411\u91cf\u5316\u540e\uff0c\u4ece\u5411\u91cf\u6570\u636e\u5e93\u53ec\u56de\uff0c\u7136\u540e\u518d\u7528\u53ec\u56de id \u8bbf\u95ee\u6b63\u6392\u83b7\u53d6\u539f\u59cb\u6587\u672c\u3002\u76f8\u5f53\u4e8e\u6bcf\u4e00\u6b21\u53ec\u56de\u8c03\u8bd5\u9700\u8981 3 \u6b21\u64cd\u4f5c\uff0c\u8de8\u8d8a 4 \u4e2a\u7cfb\u7edf\u3002<\/li>\n<li data-id=\"ld70c578-eWgK2tMr\">\u7a33\u5b9a\u6027\u8981\u6c42\u9ad8\uff1a\u5728\u7ebf\u8bfb\u4e66\u5e73\u53f0\u8d85\u4ebf\u7ea7\u7528\u6237\uff0c\u7a33\u5b9a\u6027\u8981\u6c42 5 \u4e2a 9 \u4ee5\u4e0a\u3002<\/li>\n<li data-id=\"ld70c578-HeMW7hye\">\u67e5\u8be2\u6027\u80fd\u8981\u6c42\u9ad8\uff1a\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\u67e5\u8be2\u5ef6\u8fdf\u9700\u8981\u6beb\u79d2\u7ea7\u8fd4\u56de\uff0c\u6570\u4ebf\u91cf\u7ea7\u6570\u636e\u5168\u94fe\u8def\u591a\u8def\u53ec\u56de\u9700\u63a7\u5236\u5728 100ms \u4ee5\u5185\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s8.51cto.com\/oss\/202412\/20\/c6b12e30023ceaa2761554228a7ba9b0b89762.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u5728\u4e0e\u4e1a\u52a1\u6c9f\u901a\u540e\uff0c\u6211\u4eec\u91c7\u7528\u4e86\u5982\u4e0b\u65b9\u6848\uff0c\u9996\u5148\uff0c\u4ed6\u4eec\u5c06\u5fae\u8c03\u597d\u7684\u6a21\u578b\u4e0a\u4f20\u5230\u817e\u8baf ES \u7684\u673a\u5668\u5b66\u4e60\u8282\u70b9\uff0c\u7136\u540e\u5c06\u4e66\u7c4d\u8fdb\u884c\u5165\u5e93\u3002\u5165\u5e93\u8fc7\u7a0b\u4e2d\uff0c\u6587\u672c\u9996\u5148\u4f1a\u8fdb\u884c\u5206\u8bcd\u3001\u5206\u6bb5\u548c\u8bed\u4e49\u5207\u5206\uff0c\u7136\u540e\u8f93\u5165\u5230\u673a\u5668\u5b66\u4e60\u8282\u70b9\u8fdb\u884c\u6570\u636e\u7684\u5411\u91cf\u5316\u3002\u540c\u65f6\uff0c\u6570\u636e\u8fd8\u4f1a\u8fdb\u884c\u57fa\u4e8e Lucene \u7684\u5206\u8bcd\uff0c\u5206\u8bcd\u5b8c\u6210\u540e\u8fdb\u884c\u6587\u672c\u68c0\u7d22\uff0c\u5411\u91cf\u5316\u5b8c\u6210\u540e\u8fdb\u884c\u5411\u91cf\u68c0\u7d22\u3002\u5728 ES \u4e2d\uff0c\u7528\u6237\u53ea\u9700\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u6587\u672c\u68c0\u7d22\u548c\u5411\u91cf\u68c0\u7d22\u3002\u641c\u7d22\u5230\u7684\u7ed3\u679c\u4e0e\u95ee\u9898\u76f8\u7ed3\u5408\uff0c\u62fc\u6210 Prompt \u63d0\u793a\u540e\u53d1\u9001\u5230 LLM \u5927\u6a21\u578b\u751f\u6210\u7b54\u6848\u3002\u8fd9\u79cd\u65b9\u5f0f\u5927\u5e45\u964d\u4f4e\u4e86\u6210\u672c\uff0c\u5e76\u4f7f\u8fd0\u7ef4\u53d8\u5f97\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s8.51cto.com\/oss\/202412\/20\/2781fb102d7a3d69a6c885eb0f87340d31e448.webp\" alt=\"\u56fe\u7247\" data-type=\"inline\" \/><\/p>\n<p>\u817e\u8baf\u4e91 ES \u63d0\u4f9b\u4e86\u4e00\u7ad9\u5f0f\u7684 RAG \u65b9\u6848\uff0c\u5177\u4f53\u800c\u8a00\uff0cAI \u95ee\u4e66\u5728\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\uff0c\u4e3b\u8981\u5e94\u7528\u4e86\u4ee5\u4e0b\u80fd\u529b\uff1a<\/p>\n<ul data-id=\"ua73dd4b-ihdpXhI2\">\n<li data-id=\"ld70c578-1rMxhOx7\">\u77e5\u8bc6\u5411\u91cf\u5316\uff1a\u901a\u8fc7\u4e0a\u4f20\u81ea\u5b9a\u4e49\u7684 embedding \u6a21\u578b\u5230\u817e\u8baf\u4e91 ES \u63d0\u4f9b\u7684\u673a\u5668\u5b66\u4e60\u8282\u70b9\u4e2d\uff0c\u5b9e\u73b0\u4e66\u7c4d\u5185\u5bb9\u4e0e\u641c\u7d22\u8bcd\u7684\u5411\u91cf\u5316\uff08embedding\uff09\u3002<\/li>\n<li data-id=\"ld70c578-9Hj2x2Gb\">\u6df7\u5408\u641c\u7d22\uff1a\u817e\u8baf\u4e91 ES \u63d0\u4f9b\u4e86\u5168\u6587\u68c0\u7d22\u4e0e\u5411\u91cf\u68c0\u7d22\u80fd\u529b\uff0c\u53ea\u9700\u8981\u7b80\u5355\u7684\u4e00\u6761\u67e5\u8be2\u8bed\u53e5\uff0c\u5373\u53ef\u4ece ES \u4e2d\u5b9e\u73b0\u6df7\u5408\u641c\u7d22\u4e0e\u591a\u8def\u53ec\u56de\u3002<\/li>\n<li data-id=\"ld70c578-cFYqN7Hp\">\u4e0e\u5927\u6a21\u578b\u96c6\u6210\uff1a\u817e\u8baf\u4e91 ES \u652f\u6301\u901a\u8fc7 API \u4e0e\u6df7\u5143\u5927\u6a21\u578b\u8fdb\u884c\u96c6\u6210\uff0c\u6df1\u5ea6\u6253\u901a\u6df7\u5143\u4e00\u7ad9\u5f0f\uff0c\u4ece ES \u53ec\u56de\u7684\u6570\u636e\uff0c\u53ef\u4e0e Prompt \u4e00\u8d77\u9001\u8fdb\u5230\u5927\u6a21\u578b\u4e2d\u8fdb\u884c\u751f\u6210\u5f0f\u6574\u5408\uff0c\u6700\u7ec8\u5b8c\u6210\u667a\u80fd\u95ee\u7b54\u3002<\/li>\n<li data-id=\"ld70c578-BwyPQ1if\">Kibana \u8c03\u8bd5\uff1a\u4f5c\u4e3a\u4e0e ES \u5929\u7136\u96c6\u6210 Web \u9875\u9762\uff0cKibana \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u53ef\u89c6\u5316\u80fd\u529b\uff0c\u80fd\u5e2e\u52a9\u5f00\u53d1\u8fd0\u7ef4\u4eba\u5458\u5feb\u901f\u8fdb\u884c\u53ec\u56de\u8c03\u8bd5\uff0c\u5e76\u5728 Kibana \u4e0a\u5b8c\u6210\u6a21\u578b\u7684\u90e8\u7f72\u4e0e\u7ba1\u7406\u3002<\/li>\n<li data-id=\"ld70c578-L8oDg5Oy\">\u5b89\u5168\u9ad8\u53ef\u7528\uff1a\u817e\u8baf\u4e91 ES \u81ea\u7814\u5168\u94fe\u8def\u7194\u65ad\u9650\u6d41\u65b9\u6848\uff0c\u540c\u65f6\u652f\u6301\u591a\u526f\u672c\u3001\u591a\u53ef\u7528\u533a\u90e8\u7f72\uff0c\u80fd\u591f\u6709\u6548\u4fdd\u969c\u5728\u7ebf\u4e1a\u52a1\u7a33\u5b9a\u6027\u3002<\/li>\n<\/ul>\n<p>\u76ee\u524d\u817e\u8baf ES \u5df2\u5728\u5b98\u7f51\u4e0a\u516c\u5f00\u552e\u5356\uff0c\u8fd1\u671f\u5c06\u63a8\u51fa RAG \u4e00\u7ad9\u5f0f\u670d\u52a1\u7684 AI \u641c\u7d22\uff0c\u5e2e\u52a9\u7528\u6237\u76f4\u63a5\u4f7f\u7528\u4e00\u6574\u5957\u65b9\u6848\u3002\u6b22\u8fce\u5927\u5bb6\u8bd5\u7528\u817e\u8baf ES\uff0c\u611f\u8c22\u5927\u5bb6\u7684\u5173\u6ce8\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u4e03\u3001Q&amp;A<\/h3>\n<p><strong>Q\uff1a\u5728\u505a\u6587\u672c\u68c0\u7d22\u65f6\u4f1a\u4f7f\u7528\u65e2\u6709\u5411\u91cf\u53c8\u6709\u5173\u952e\u8bcd\u7684\u6df7\u5408\u68c0\u7d22\uff0c\u6df7\u5408\u68c0\u7d22\u4f1a\u5f97\u5230\u591a\u79cd\u7c7b\u578b\u7684\u7ed3\u679c\uff0c\u8bf7\u95ee\u5982\u4f55\u5bf9\u8fd9\u4e9b\u7ed3\u679c\u8fdb\u884c\u91cd\u6392\u5e8f\u6765\u9009\u51fa\u5176\u4e2d\u9ad8\u4ef7\u503c\u7684\u7ed3\u679c\u3002<\/strong><\/p>\n<p>A\uff1a\u5bf9\u4e8e\u591a\u8def\u53ec\u56de\u7684\u7ed3\u679c\u7b2c\u4e00\u5757\u662f\u4e00\u4e2a\u524d\u9762\u4ecb\u7ecd\u8fc7\u7684\u5012\u6570\u6392\u5e8f\u7684\u878d\u5408\uff0c\u5b83\u4e3b\u8981\u5bf9\u591a\u8def\u7684\u7ed3\u679c\u8fdb\u884c\u878d\u5408\uff0c\u4f8b\u5982\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u6709\u4e24\u8def\u7ed3\u679c\uff0c\u57fa\u4e8e\u6bcf\u4e00\u8def\u7684\u6392\u540d\u7ed3\u679c\u5bf9\u6700\u7ec8\u7ed3\u679c\u8fdb\u884c\u878d\u5408\u3002\u53e6\u4e00\u79cd\u662f\u91cd\u6392\u6a21\u578b\uff08Reranker\uff09\uff0c\u4f8b\u5982\u5229\u7528 LLM \u5927\u6a21\u578b\u63d0\u4f9b\u7684\u529f\u80fd\u5bf9\u7ed3\u679c\u8fdb\u884c\u91cd\u6392\u3002<\/p>\n<p>\u6587\u7ae0\u6765\u81ea\uff1a51CTO<\/p>\n<\/div>\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_23635\" class=\"pvc_stats total_only  \" data-element-id=\"23635\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6b21\u5206\u4eab\u5c06\u6df1\u5165\u63a2\u8ba8\u817e\u8baf\u4e91 ES \u5728\u641c\u7d22\u9886\u57df\u7684\u6700\u65b0\u63a2\u7d22\uff0c\u8be6\u7ec6\u89e3\u6790\u817e\u8baf\u4e91 ES \u7684\u4e00\u7ad9\u5f0f RAG \u65b9\u6848\uff0c\u5e76\u4ecb\u7ecd\u56f4\u7ed5 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_23635\" class=\"pvc_stats total_only  \" data-element-id=\"23635\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":56,"featured_media":23637,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,20,80],"tags":[986,113,1052],"class_list":["post-23635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23","category-20","category-80","tag-llm","tag-113","tag-1052"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/23635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=23635"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/23635\/revisions"}],"predecessor-version":[{"id":23638,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/23635\/revisions\/23638"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/23637"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=23635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=23635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=23635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}