{"id":20965,"date":"2024-07-04T11:37:35","date_gmt":"2024-07-04T03:37:35","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=20965"},"modified":"2024-07-04T11:37:35","modified_gmt":"2024-07-04T03:37:35","slug":"%e5%9f%ba%e4%ba%8e%e5%bc%80%e6%ba%90ai%e6%95%b0%e6%8d%ae%e6%a1%86%e6%9e%b6llamaindex%e6%9e%84%e5%bb%ba%e4%b8%8a%e4%b8%8b%e6%96%87%e5%a2%9e%e5%bc%ba%e5%9e%8blla%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2024\/07\/04\/20965\/","title":{"rendered":"\u57fa\u4e8e\u5f00\u6e90AI\u6570\u636e\u6846\u67b6LlamaIndex\u6784\u5efa\u4e0a\u4e0b\u6587\u589e\u5f3a\u578bLLA\u5e94\u7528"},"content":{"rendered":"<div><img data-dominant-color=\"b9b9bb\" data-has-transparency=\"false\" style=\"--dominant-color: #b9b9bb;\" loading=\"lazy\" decoding=\"async\" class=\"not-transparent alignnone size-full wp-image-20967\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/f13b4fa199477aa452894943c433540271c88a-300x200-1.jpg\" width=\"300\" height=\"200\" alt=\"\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/f13b4fa199477aa452894943c433540271c88a-300x200-1.jpg 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/f13b4fa199477aa452894943c433540271c88a-300x200-1-150x100.jpg 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<div class=\"article-desc\">\u672c\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\u4e00\u6b3e\u65b0\u7684\u514d\u8d39\u5f00\u6e90\u7684AI\u5f00\u53d1\u6570\u636e\u6846\u67b6\uff0c\u5b83\u652f\u6301\u5411\u91cf\u5b58\u50a8\u3001LLM\u548c\u6570\u636e\u6e90\u96c6\u6210\uff0c\u9002\u7528\u4e8eQ&amp;A\u95ee\u7b54\u3001\u7ed3\u6784\u5316\u63d0\u53d6\u3001\u804a\u5929\u3001\u8bed\u4e49\u641c\u7d22\u548c\u4ee3\u7406\u5f00\u53d1\u7b49\u573a\u666f\u4e0b\u7684\u5e94\u7528\u3002\u200b<\/div>\n<div id=\"postspictures\" class=\"article-content\">\n<div id=\"container\" class=\"container am-engine\" data-v-1d7a5742=\"\" data-element=\"root\">\n<p>&nbsp;<\/p>\n<h3>\u5f15\u8a00<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/s8.51cto.com\/oss\/202407\/03\/f13b4fa199477aa452894943c433540271c88a.jpg\" data-type=\"block\" \/><\/p>\n<p>\u201c\u5c06\u4f60\u7684\u4f01\u4e1a\u6570\u636e\u8f6c\u5316\u4e3a\u53ef\u7528\u4e8e\u5b9e\u9645\u751f\u4ea7\u73af\u5883\u7684LLM\u5e94\u7528\u7a0b\u5e8f\uff0c\u201dLlamaIndex\u4e3b\u9875\u752860\u53f7\u5b57\u4f53\u8fd9\u6837\u9ad8\u4eae\u663e\u793a\u3002\u5176\u526f\u6807\u9898\u662f\u201cLlamaIndex\u662f\u6784\u5efaLLM\u5e94\u7528\u7a0b\u5e8f\u7684\u9886\u5148\u6570\u636e\u6846\u67b6\u3002\u201d\u6211\u4e0d\u592a\u786e\u5b9a\u5b83\u662f\u5426\u662f\u4e1a\u5185\u9886\u5148\u7684\u6570\u636e\u6846\u67b6\uff0c\u4f46\u6211\u8ba4\u4e3a\u5b83\u662f\u4e00\u4e2a\u4e0eLangChain\u548cSemantic Kernel\u4e00\u8d77\u6784\u5efa\u5927\u578b\u8bed\u8a00\u6a21\u578b\u5e94\u7528\u7684\u9886\u5148\u6570\u636e\u6846\u67b6\u3002<\/p>\n<p>LlamaIndex\u76ee\u524d\u63d0\u4f9b\u4e24\u79cd\u5f00\u6e90\u8bed\u8a00\u6846\u67b6\u548c\u4e00\u4e2a\u4e91\u7aef\u652f\u6301\u3002\u4e00\u79cd\u5f00\u6e90\u8bed\u8a00\u662fPython\uff1b\u53e6\u4e00\u79cd\u5f00\u6e90\u8bed\u8a00\u662fTypeScript\u3002LlamaCloud\uff08\u76ee\u524d\u5904\u4e8e\u4e2a\u4eba\u9884\u89c8\u7248\u672c\uff09\u901a\u8fc7LlamaHub\u63d0\u4f9b\u5b58\u50a8\u3001\u68c0\u7d22\u3001\u6570\u636e\u6e90\u94fe\u63a5\uff0c\u4ee5\u53ca\u9488\u5bf9\u590d\u6742\u6587\u6863\u7684\u4ed8\u8d39\u65b9\u5f0f\u7684\u4e13\u6709\u89e3\u6790\u670d\u52a1LlamaParse\uff0c\u8be5\u670d\u52a1\u4e5f\u53ef\u4f5c\u4e3a\u72ec\u7acb\u670d\u52a1\u63d0\u4f9b\u3002<\/p>\n<p>LlamaIndex\u5728\u52a0\u8f7d\u6570\u636e\u3001\u5b58\u50a8\u548c\u7d22\u5f15\u6570\u636e\u3001\u901a\u8fc7\u7f16\u6392LLM\u5de5\u4f5c\u6d41\u8fdb\u884c\u67e5\u8be2\u4ee5\u53ca\u8bc4\u4f30LLM\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u65b9\u9762\u90fd\u5177\u6709\u4f18\u52bf\u3002\u5f53\u524d\uff0cLlamaIndex\u96c6\u6210\u4e8640\u591a\u4e2a\u5411\u91cf\u5b58\u50a8\u300140\u591a\u4e2aLLM\u548c160\u591a\u4e2a\u6570\u636e\u6e90\u3002\u5176\u4e2d\uff0cLlamaIndex Python\u4ee3\u7801\u5b58\u50a8\u5e93\u5df2\u83b7\u5f97\u8d85\u8fc730K\u7684\u661f\u7ea7\u597d\u8bc4\u3002<\/p>\n<p>\u5178\u578b\u7684LlamaIndex\u5e94\u7528\u7a0b\u5e8f\u4f1a\u6267\u884c\u95ee\u7b54\u3001\u7ed3\u6784\u5316\u63d0\u53d6\u3001\u804a\u5929\u6216\u8bed\u4e49\u641c\u7d22\uff0c\u548c\/\u6216\u5145\u5f53\u4ee3\u7406\u3002\u5b83\u4eec\u53ef\u4ee5\u4f7f\u7528\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff08RAG\uff09\u6280\u672f\u5c06LLM\u4e0e\u7279\u5b9a\u7684\u6570\u636e\u6e90\u8054\u7cfb\u8d77\u6765\uff0c\u8fd9\u4e9b\u6e90\u901a\u5e38\u4e0d\u5305\u62ec\u5728\u6a21\u578b\u7684\u539f\u59cb\u8bad\u7ec3\u96c6\u4e2d\u3002<\/p>\n<p>\u663e\u7136\uff0cLlamaIndex\u6846\u67b6\u5c06\u4f1a\u4e0eLangChain\u3001Semantic Kernel\u548cHaystack\u7b49\u6846\u67b6\u5c55\u5f00\u5e02\u573a\u7ade\u4e89\u3002\u4e0d\u8fc7\uff0c\u5e76\u975e\u6240\u6709\u8fd9\u4e9b\u6846\u67b6\u90fd\u6709\u5b8c\u5168\u76f8\u540c\u7684\u5e94\u7528\u8303\u56f4\u548c\u529f\u80fd\u652f\u6301\uff0c\u4f46\u5c31\u6d41\u884c\u7a0b\u5ea6\u800c\u8a00\uff0cLangChain\u7684Python\u4ee3\u7801\u4ed3\u5e93\u6709\u8d85\u8fc780K\u7684\u661f\u7ea7\u597d\u8bc4\uff0c\u51e0\u4e4e\u662fLlamaIndex\uff08\u8d85\u8fc730K\u7684\u661f\u7ea7\u597d\u8bc4\uff09\u7684\u4e09\u500d\uff0c\u800c\u76f8\u5bf9\u6700\u665a\u51fa\u73b0\u7684Semantic Kernel\u5df2\u7ecf\u83b7\u5f97\u8d85\u8fc718K\u7684\u661f\u7ea7\u597d\u8bc4\uff0c\u7565\u9ad8\u4e8eLlamaIndex\u7684\u4e00\u534a\uff0cHaystack\u7684\u4ee3\u7801\u4ed3\u5e93\u6709\u8d85\u8fc713K\u7684\u661f\u7ea7\u597d\u8bc4\u3002<\/p>\n<p>\u4e0a\u8ff0\u597d\u8bc4\u7ed3\u679c\u662f\u4e0e\u4ee3\u7801\u4ed3\u5e93\u7684\u5e74\u9f84\u5bc6\u5207\u76f8\u5173\u7684\uff0c\u56e0\u4e3a\u661f\u7ea7\u597d\u8bc4\u4f1a\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\u800c\u79ef\u7d2f\uff1b\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u6211\u7528\u201c\u8d85\u8fc7\u201d\u6765\u4fee\u9970\u661f\u7ea7\u597d\u8bc4\u6570\u7684\u539f\u56e0\u3002GitHub\u4e0a\u7684\u661f\u7ea7\u597d\u8bc4\u6570\u4e0e\u5386\u53f2\u8fdb\u7a0b\u4e2d\u7684\u6d41\u884c\u5ea6\u5b58\u5728\u677e\u6563\u7684\u76f8\u5173\u6027\u3002<\/p>\n<p>LlamaIndex\u3001LangChain\u548cHaystack\u90fd\u62e5\u6709\u8bb8\u591a\u5927\u516c\u53f8\u4f5c\u4e3a\u7528\u6237\uff0c\u5176\u4e2d\u4e00\u4e9b\u516c\u53f8\u4f7f\u7528\u4e86\u4e0d\u6b62\u4e00\u4e2a\u8fd9\u6837\u7684\u6846\u67b6\u3002Semantic Kernel\u6765\u81ea\u5fae\u8f6f\uff0c\u9664\u4e86\u6848\u4f8b\u7814\u7a76\u4e4b\u5916\uff0c\u5fae\u8f6f\u901a\u5e38\u4e0d\u4f1a\u516c\u5e03\u7528\u6237\u6570\u636e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s4.51cto.com\/images\/20247\/27cd000d3ce4.png\" data-type=\"block\" \/><\/p>\n<p>LlamaIndex\u6846\u67b6\u53ef\u5e2e\u52a9\u4f60\u5c06\u6570\u636e\u3001\u5d4c\u5165\u3001LLM\u3001\u5411\u91cf\u6570\u636e\u5e93\u548c\u6c42\u503c\u8fde\u63a5\u5230\u5e94\u7528\u7a0b\u5e8f\u4e2d\u3002\u8fd9\u4e9b\u652f\u6301\u53ef\u4ee5\u7528\u4e8e\u95ee\u7b54\u3001\u7ed3\u6784\u5316\u63d0\u53d6\u3001\u804a\u5929\u3001\u8bed\u4e49\u641c\u7d22\u548c\u4ee3\u7406\u7b49\u73af\u5883\u3002<\/p>\n<h3>LlamaIndex\u6846\u67b6\u7684\u529f\u80fd<\/h3>\n<p>\u4ece\u9ad8\u5c42\u9762\u6765\u770b\uff0cLlamaIndex\u6846\u67b6\u7684\u5f00\u53d1\u4e3b\u65e8\u5728\u5e2e\u52a9\u4f60\u6784\u5efa\u4e0a\u4e0b\u6587\u589e\u5f3a\u7684LLM\u5e94\u7528\u7a0b\u5e8f\uff0c\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u5c06\u81ea\u5df1\u7684\u79c1\u6709\u6570\u636e\u4e0e\u5927\u578b\u8bed\u8a00\u6a21\u578b\u76f8\u7ed3\u5408\u3002\u4e0a\u4e0b\u6587\u589e\u5f3aLLM\u5e94\u7528\u7a0b\u5e8f\u7684\u793a\u4f8b\u5305\u62ec\u95ee\u7b54\u804a\u5929\u673a\u5668\u4eba\u3001\u6587\u6863\u7406\u89e3\u548c\u63d0\u53d6\u4ee5\u53ca\u81ea\u52a8\u5316\u4ee3\u7406\u7b49\u9886\u57df\u3002<\/p>\n<p>LlamaIndex\u63d0\u4f9b\u7684\u5de5\u5177\u53ef\u6267\u884c\u6570\u636e\u52a0\u8f7d\u3001\u6570\u636e\u7d22\u5f15\u548c\u5b58\u50a8\u3001\u4f7f\u7528LLM\u67e5\u8be2\u6570\u636e\u4ee5\u53ca\u8bc4\u4f30LLM\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\uff1a<\/p>\n<ul data-id=\"u738a58b-UJCabNZS\">\n<li data-id=\"ld70c578-D9lkMF5O\">\u6570\u636e\u8fde\u63a5\u5668\u4ece\u5176\u672c\u673a\u6e90\u548c\u683c\u5f0f\u4e2d\u83b7\u53d6\u73b0\u6709\u6570\u636e\u3002<\/li>\n<li data-id=\"ld70c578-QV5YlLae\">\u6570\u636e\u7d22\u5f15\uff0c\u4e5f\u79f0\u4e3a\u5d4c\u5165\uff0c\u4ee5\u4e2d\u95f4\u8868\u793a\u5f62\u5f0f\u6784\u5efa\u6570\u636e\u3002<\/li>\n<li data-id=\"ld70c578-9T9HeeGi\">\u5f15\u64ce\u63d0\u4f9b\u5bf9\u6570\u636e\u7684\u81ea\u7136\u8bed\u8a00\u8bbf\u95ee\u3002\u5176\u4e2d\u5305\u62ec\u7528\u4e8e\u56de\u7b54\u95ee\u9898\u7684\u67e5\u8be2\u5f15\u64ce\uff0c\u4ee5\u53ca\u7528\u4e8e\u4e0e\u4f60\u7684\u6570\u636e\u8fdb\u884c\u591a\u6d88\u606f\u5bf9\u8bdd\u7684\u804a\u5929\u5f15\u64ce\u3002<\/li>\n<li data-id=\"ld70c578-Gom8eKDY\">\u4ee3\u7406\u662fLLM\u9a71\u52a8\u7684\u77e5\u8bc6\u5de5\u5177\uff0c\u7ed3\u5408\u5176\u4ed6\u8f6f\u4ef6\u5de5\u5177\u589e\u5f3a\u6027\u80fd\u3002<\/li>\n<li data-id=\"ld70c578-le1ZRNdW\">\u53ef\u89c2\u5bdf\u6027\/\u8bc4\u4f30\u96c6\u6210\u4f7f\u4f60\u80fd\u591f\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u5b9e\u9a8c\u3001\u8bc4\u4f30\u548c\u76d1\u63a7\u3002<\/li>\n<\/ul>\n<h3>\u4e0a\u4e0b\u6587\u589e\u5f3a<\/h3>\n<p>LLM\u53d7\u8fc7\u5927\u91cf\u6587\u672c\u7684\u8bad\u7ec3\uff0c\u4f46\u4e0d\u4e00\u5b9a\u662f\u5173\u4e8e\u4f60\u7684\u9886\u57df\u7684\u6587\u672c\u4fe1\u606f\u3002\u5f53\u524d\uff0c\u5b58\u5728\u4e09\u79cd\u4e3b\u8981\u65b9\u6cd5\u53ef\u4ee5\u6267\u884c\u4e0a\u4e0b\u6587\u589e\u5f3a\u5e76\u6dfb\u52a0\u6709\u5173\u57df\u7684\u4fe1\u606f\uff0c\u5373\u63d0\u4f9b\u6587\u6863\u3001\u6267\u884cRAG\u548c\u5fae\u8c03\u6a21\u578b\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6700\u7b80\u5355\u7684\u4e0a\u4e0b\u6587\u6269\u5145\u65b9\u6cd5\u662f\u5c06\u6587\u6863\u4e0e\u67e5\u8be2\u4e00\u8d77\u63d0\u4f9b\u7ed9\u6a21\u578b\uff0c\u4e3a\u6b64\u4f60\u53ef\u80fd\u4e0d\u9700\u8981LlamaIndex\u3002\u9664\u975e\u6587\u6863\u7684\u603b\u5927\u5c0f\u5927\u4e8e\u4f60\u6b63\u5728\u4f7f\u7528\u7684\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\uff1b\u5426\u5219\uff0c\u63d0\u4f9b\u6587\u6863\u662f\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u7684\uff0c\u8fd9\u5728\u6700\u8fd1\u8fd8\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u95ee\u9898\u3002\u73b0\u5728\uff0c\u6709\u4e86\u5177\u6709\u767e\u4e07\u4e2a\u6807\u8bb0\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684LLM\uff0c\u8fd9\u53ef\u4ee5\u4f7f\u4f60\u5728\u6267\u884c\u8bb8\u591a\u4efb\u52a1\u65f6\u907f\u514d\u7ee7\u7eed\u4e0b\u4e00\u6b65\u64cd\u4f5c\u3002\u5982\u679c\u4f60\u8ba1\u5212\u5bf9\u4e00\u767e\u4e07\u4e2a\u6807\u8bb0\u8bed\u6599\u5e93\u6267\u884c\u8bb8\u591a\u67e5\u8be2\uff0c\u90a3\u4e48\u9700\u8981\u5bf9\u6587\u6863\u8fdb\u884c\u7f13\u5b58\u5904\u7406\uff1b\u4f46\u662f\uff0c\u8fd9\u662f\u53e6\u5916\u4e00\u4e2a\u5f85\u8ba8\u8bba\u7684\u8bdd\u9898\u4e86\u3002<\/p>\n<p>\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u5728\u63a8\u7406\u65f6\u5c06\u4e0a\u4e0b\u6587\u4e0eLLM\u76f8\u7ed3\u5408\uff0c\u901a\u5e38\u4e0e\u5411\u91cf\u6570\u636e\u5e93\u76f8\u7ed3\u5408\u3002RAG\u8fc7\u7a0b\u901a\u5e38\u4f7f\u7528\u5d4c\u5165\u6765\u9650\u5236\u957f\u5ea6\u5e76\u63d0\u9ad8\u68c0\u7d22\u5230\u7684\u4e0a\u4e0b\u6587\u7684\u76f8\u5173\u6027\uff0c\u8fd9\u65e2\u7ed5\u8fc7\u4e86\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u9650\u5236\uff0c\u53c8\u589e\u52a0\u4e86\u6a21\u578b\u770b\u5230\u56de\u7b54\u95ee\u9898\u6240\u9700\u4fe1\u606f\u7684\u6982\u7387\u3002<\/p>\n<p>\u4ece\u672c\u8d28\u4e0a\u8bb2\uff0c\u5d4c\u5165\u51fd\u6570\u83b7\u53d6\u4e00\u4e2a\u5355\u8bcd\u6216\u77ed\u8bed\uff0c\u5e76\u5c06\u5176\u6620\u5c04\u5230\u6d6e\u70b9\u6570\u7684\u5411\u91cf\uff1b\u8fd9\u4e9b\u5411\u91cf\u901a\u5e38\u5b58\u50a8\u5728\u652f\u6301\u5411\u91cf\u641c\u7d22\u7d22\u5f15\u7684\u6570\u636e\u5e93\u4e2d\u3002\u7136\u540e\uff0c\u68c0\u7d22\u6b65\u9aa4\u4f7f\u7528\u8bed\u4e49\u76f8\u4f3c\u6027\u641c\u7d22\uff0c\u901a\u5e38\u4f7f\u7528\u67e5\u8be2\u5d4c\u5165\u548c\u5b58\u50a8\u5411\u91cf\u4e4b\u95f4\u7684\u89d2\u5ea6\u7684\u4f59\u5f26\uff0c\u6765\u627e\u5230\u201c\u9644\u8fd1\u201d\u7684\u4fe1\u606f\uff0c\u4ee5\u4fbf\u5728\u589e\u5f3a\u63d0\u793a\u4e2d\u4f7f\u7528\u3002<\/p>\n<p>\u5fae\u8c03LLM\u662f\u4e00\u4e2a\u6709\u76d1\u7763\u7684\u5b66\u4e60\u8fc7\u7a0b\uff0c\u6d89\u53ca\u5230\u6839\u636e\u7279\u5b9a\u4efb\u52a1\u8c03\u6574\u6a21\u578b\u7684\u53c2\u6570\u3002\u8fd9\u662f\u901a\u8fc7\u5728\u4e00\u4e2a\u8f83\u5c0f\u7684\u3001\u7279\u5b9a\u4e8e\u4efb\u52a1\u6216\u7279\u5b9a\u4e8e\u9886\u57df\u7684\u6570\u636e\u96c6\u4e0a\u8bad\u7ec3\u6a21\u578b\u6765\u5b8c\u6210\u7684\uff0c\u8be5\u6570\u636e\u96c6\u6807\u6709\u4e0e\u76ee\u6807\u4efb\u52a1\u76f8\u5173\u7684\u6837\u672c\u3002\u4f7f\u7528\u8bb8\u591a\u670d\u52a1\u5668\u7ea7GPU\u8fdb\u884c\u5fae\u8c03\u901a\u5e38\u9700\u8981\u6570\u5c0f\u65f6\u6216\u6570\u5929\u65f6\u95f4\uff0c\u5e76\u4e14\u9700\u8981\u6570\u767e\u6216\u6570\u5343\u4e2a\u6807\u8bb0\u7684\u6837\u672c\u3002<\/p>\n<h3>\u5b89\u88c5LlamaIndex<\/h3>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e09\u79cd\u65b9\u5f0f\u5b89\u88c5Python\u7248\u672c\u7684LlamaIndex\uff1a\u4eceGitHub\u5b58\u50a8\u5e93\u4e2d\u7684\u6e90\u4ee3\u7801\uff0c\u4f7f\u7528llama index starter\u5b89\u88c5\uff0c\u6216\u8005\u4f7f\u7528llama-index-core\u7ed3\u5408\u9009\u5b9a\u7684\u96c6\u6210\u7ec4\u4ef6\u3002starter\u65b9\u5f0f\u7684\u5b89\u88c5\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_0\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">pip install llama-index<\/code><\/pre>\n<ul id=\"code_id_0\" class=\"pre-numbering\">\n<li>1.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u9664\u4e86LlamaIndex\u6838\u5fc3\u4e4b\u5916\uff0c\u8fd9\u79cd\u5b89\u88c5\u65b9\u5f0f\u8fd8\u5c06\u5b89\u88c5OpenAI LLM\u548c\u5d4c\u5165\u3002\u6ce8\u610f\uff0c\u4f60\u9700\u8981\u63d0\u4f9bOpenAI API\u5bc6\u94a5\uff08\u8bf7\u53c2\u9605\u94fe\u63a5https:\/\/platform.openai.com\/docs\/quickstart\uff09\uff0c\u7136\u540e\u624d\u80fd\u8fd0\u884c\u4f7f\u7528\u8fd9\u79cd\u5b89\u88c5\u65b9\u5f0f\u7684\u793a\u4f8b\u3002LlamaIndex\u00a0starter\u7a0b\u5e8f\u793a\u4f8b\u975e\u5e38\u7b80\u5355\uff0c\u57fa\u672c\u4e0a\u4ec5\u5305\u542b\u7ecf\u8fc7\u51e0\u4e2a\u7b80\u5355\u7684\u8bbe\u7f6e\u6b65\u9aa4\u540e\u7684\u4e94\u884c\u4ee3\u7801\u3002\u5728\u5b98\u65b9\u7684\u4ee3\u7801\u4ed3\u5e93\u4e2d\u8fd8\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u4f8b\u5b50\u548c\u6709\u5173\u53c2\u8003\u6587\u6863\u3002<\/p>\n<p>\u8fdb\u884c\u81ea\u5b9a\u4e49\u5b89\u88c5\u53ef\u80fd\u770b\u8d77\u6765\u50cf\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_1\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">pip install llama-index-core llama-index-readers-file llama-index-llms-ollama llama-index-embeddings-huggingface<\/code><\/pre>\n<ul id=\"code_id_1\" class=\"pre-numbering\">\n<li>1.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u5c06\u5b89\u88c5\u4e00\u4e2aOllama\u548cHugging Face\u5d4c\u5165\u7684\u63a5\u53e3\u3002\u6b64\u5b89\u88c5\u8fd8\u63d0\u4f9b\u4e00\u4e2a\u672c\u5730starter\u7ea7\u7684\u793a\u4f8b\u3002\u65e0\u8bba\u4ece\u54ea\u79cd\u65b9\u5f0f\u5f00\u59cb\uff0c\u4f60\u90fd\u53ef\u4ee5\u4f7f\u7528pip\u6dfb\u52a0\u66f4\u591a\u7684\u63a5\u53e3\u6a21\u5757\u3002<\/p>\n<p>\u5982\u679c\u4f60\u66f4\u559c\u6b22\u7528JavaScript\u6216TypeScript\u7f16\u5199\u4ee3\u7801\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u4f7f\u7528LlamaIndex.TS\u3002TypeScript\u7248\u672c\u7684\u4e00\u4e2a\u4f18\u70b9\u662f\uff0c\u4f60\u53ef\u4ee5\u5728StackBlitz\u4e0a\u5728\u7ebf\u8fd0\u884c\u793a\u4f8b\uff0c\u800c\u65e0\u9700\u4efb\u4f55\u672c\u5730\u8bbe\u7f6e\u3002\u4e0d\u8fc7\uff0c\u4f60\u4ecd\u7136\u9700\u8981\u63d0\u4f9b\u4e00\u4e2aOpenAI API\u5bc6\u94a5\u3002<\/p>\n<h3>LlamaCloud\u548cLlamaParse<\/h3>\n<p>LlamaCloud\u662f\u4e00\u4e2a\u4e91\u670d\u52a1\uff0c\u5141\u8bb8\u4f60\u4e0a\u4f20\u3001\u89e3\u6790\u548c\u7d22\u5f15\u6587\u6863\uff0c\u5e76\u4f7f\u7528LlamaIndex\u8fdb\u884c\u641c\u7d22\u3002\u5f53\u524d\uff0c\u8be5\u9879\u670d\u52a1\u4ecd\u5904\u4e8e\u4e2a\u4ebaalpha\u6d4b\u8bd5\u9636\u6bb5\uff0c\u6211\u65e0\u6cd5\u8bbf\u95ee\u5b83\u3002<\/p>\n<p>LlamaParse\u4f5c\u4e3aLlamaCloud\u7684\u4e00\u4e2a\u7ec4\u4ef6\uff0c\u5141\u8bb8\u4f60\u5c06PDF\u89e3\u6790\u4e3a\u7ed3\u6784\u5316\u6570\u636e\uff1b\u5b83\u53ef\u4ee5\u901a\u8fc7REST API\u3001Python\u5305\u548cWeb UI\u83b7\u5f97\u3002\u8fd9\u4e2a\u7ec4\u4ef6\u76ee\u524d\u5904\u4e8e\u516c\u6d4b\u9636\u6bb5\u3002\u5728\u6bcf\u5468\u524d7K\u9875\u7684\u514d\u8d39\u8bd5\u7528\u4e4b\u540e\uff0c\u4f60\u53ef\u4ee5\u6ce8\u518c\u4f7f\u7528LlamaParse\uff0c\u53ea\u9700\u652f\u4ed8\u5c11\u91cf\u7684\u4f7f\u7528\u8d39\u3002\u5b98\u7f51\u4e0a\u63d0\u4f9b\u7684\u6709\u5173\u9488\u5bf9\u82f9\u679c10K\u5927\u5c0f\u6587\u4ef6\u57fa\u7840\u4e0a\u7684\u5bf9\u4e8eLlamaParse\u548cPyPDF\u6bd4\u8f83\u7684\u4f8b\u5b50\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\uff0c\u4f46\u6211\u81ea\u5df1\u6ca1\u6709\u6d4b\u8bd5\u8fc7\u3002<\/p>\n<h3>LlamaHub<\/h3>\n<p>LlamaHub\u8ba9\u4f60\u53ef\u4ee5\u8bbf\u95eeLlamaIndex\u7684\u5927\u91cf\u96c6\u6210\uff0c\u5176\u4e2d\u5305\u62ec\u4ee3\u7406\u3001\u56de\u8c03\u3001\u6570\u636e\u52a0\u8f7d\u7a0b\u5e8f\u3001\u5d4c\u5165\u4ee5\u53ca\u5927\u7ea617\u4e2a\u5176\u4ed6\u7c7b\u522b\u3002\u901a\u5e38\uff0c\u8fd9\u4e9b\u96c6\u6210\u5185\u5bb9\u4f4d\u4e8eLlamaIndex\u5b58\u50a8\u5e93\u3001PyPI\u548cNPM\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528pip-install\u6216NPM-install\u52a0\u8f7d\u4f7f\u7528\u3002<\/p>\n<h3>create-llama CLI<\/h3>\n<p>create-lama\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u4e8e\u751f\u6210LlamaIndex\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u662f\u5f00\u59cb\u4f7f\u7528LlamaIndex\u7684\u5feb\u901f\u65b9\u6cd5\u3002\u751f\u6210\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5305\u542b\u4e00\u4e2aNext.js\u9a71\u52a8\u7684\u524d\u7aef\u548c\u4e09\u79cd\u540e\u7aef\u65b9\u6848\u53ef\u4f9b\u9009\u62e9\u3002<\/p>\n<h3>RAG-CLI<\/h3>\n<p>RAG CLI\u4e5f\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u4e8e\u4e0eLLM\u4ea4\u6d41\u4f60\u5728\u8ba1\u7b97\u673a\u4e0a\u672c\u5730\u4fdd\u5b58\u7684\u6587\u4ef6\u3002\u8fd9\u53ea\u662fLlamaIndex\u7684\u4f17\u591a\u4f7f\u7528\u573a\u666f\u6848\u4f8b\u4e4b\u4e00\uff0c\u4e0d\u8fc7\u8fd9\u79cd\u60c5\u51b5\u975e\u5e38\u666e\u904d\u3002<\/p>\n<h3>LlamaIndex\u7ec4\u4ef6<\/h3>\n<p>LlamaIndex\u7ec4\u4ef6\u6307\u5357\u4f1a\u4e3a\u4f60\u63d0\u4f9b\u6709\u5173LlamaIndex\u5404\u4e2a\u90e8\u5206\u7684\u5177\u4f53\u5e2e\u52a9\u3002\u4e0b\u9762\u7684\u7b2c\u4e00\u4e2a\u5c4f\u5e55\u622a\u56fe\u663e\u793a\u4e86\u7ec4\u4ef6\u6307\u5357\u83dc\u5355\u3002\u7b2c\u4e8c\u4e2a\u663e\u793a\u4e86\u63d0\u793a\u7684\u7ec4\u4ef6\u6307\u5357\uff0c\u6eda\u52a8\u5230\u5173\u4e8e\u81ea\u5b9a\u4e49\u63d0\u793a\u7684\u90e8\u5206\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s4.51cto.com\/images\/20247\/96bc614bd814.png\" data-type=\"block\" \/><\/p>\n<p>LlamaIndex\u7ec4\u4ef6\u6307\u5357\u8bb0\u5f55\u4e86\u6784\u6210\u6846\u67b6\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u5176\u4e2d\u4ecb\u7ecd\u4e86\u76f8\u5f53\u591a\u7684\u7ec4\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s4.51cto.com\/images\/20247\/77b05a9e4df0.png\" data-type=\"block\" \/><\/p>\n<p>\u6211\u4eec\u6b63\u5728\u7814\u7a76\u8fd9\u79cd\u63d0\u793a\u8bcd\u7684\u4f7f\u7528\u6a21\u5f0f\u3002\u8fd9\u4e2a\u7279\u6b8a\u7684\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u81ea\u5b9a\u4e49\u95ee\u7b54\u63d0\u793a\uff0c\u4ee5\u838e\u58eb\u6bd4\u4e9a\u620f\u5267\u7684\u98ce\u683c\u56de\u7b54\u95ee\u9898\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u662f\u4e00\u4e2a\u96f6\u6837\u672c\u63d0\u793a\uff0c\u56e0\u4e3a\u5b83\u6ca1\u6709\u63d0\u4f9b\u4efb\u4f55\u793a\u4f8b\u3002<\/p>\n<h3>\u5b66\u4e60LlamaIndex<\/h3>\n<p>\u4e00\u65e6\u4f60\u9605\u8bfb\u3001\u7406\u89e3\u5e76\u7528\u4f60\u559c\u6b22\u7684\u7f16\u7a0b\u8bed\u8a00\uff08Python\u6216TypeScript\uff09\u8fd0\u884c\u4e86\u5165\u95e8\u793a\u4f8b\uff0c\u6211\u5efa\u8bae\u4f60\u5c3d\u53ef\u80fd\u591a\u5730\u9605\u8bfb\u3001\u7406\u89e3\u548c\u5c1d\u8bd5\u5176\u4ed6\u770b\u8d77\u6765\u66f4\u6709\u8da3\u7684\u4e00\u4e9b\u793a\u4f8b\u3002\u4e0b\u9762\u7684\u5c4f\u5e55\u622a\u56fe\u663e\u793a\u4e86\u901a\u8fc7\u8fd0\u884cessay.ts\u5e76\u4f7f\u7528chatEngine.ts\u8be2\u95ee\u76f8\u5173\u95ee\u9898\u6765\u751f\u6210\u4e00\u4e2a\u540d\u4e3aessay\u7684\u6587\u4ef6\u7684\u7ed3\u679c\u3002\u8fd9\u662f\u4e00\u4e2a\u4f7f\u7528RAG\u8fdb\u884c\u95ee\u7b54\u7684\u793a\u4f8b\u3002<\/p>\n<p>\u5176\u4e2d\uff0cchatEngine.ts\u7a0b\u5e8f\u4f7f\u7528LlamaIndex\u7684ContextChatEngine\u3001Document\u3001Settings\u548cVectorStoreIndex\u7b49\u7ec4\u4ef6\u3002\u5f53\u6211\u5206\u6790\u5176\u6e90\u4ee3\u7801\u65f6\uff0c\u6211\u770b\u5230\u5b83\u4f9d\u8d56\u4e8eOpenAI gpt-3.5-turb-16k\u6a21\u578b\uff1b\u8fd9\u79cd\u60c5\u51b5\u53ef\u80fd\u4f1a\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\u800c\u6539\u53d8\u3002\u5982\u679c\u6211\u5bf9\u6587\u6863\u7684\u5206\u6790\u662f\u6b63\u786e\u7684\u8bdd\uff0c\u90a3\u4e48VectorStoreIndex\u6a21\u5757\u4f7f\u7528\u4e86\u5f00\u6e90\u7684\u3001\u57fa\u4e8eRust\u7684Qdrant\u5411\u91cf\u6570\u636e\u5e93\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/s4.51cto.com\/images\/20247\/f33a8c62e3c0.png\" data-type=\"block\" \/><\/p>\n<p>\u5728\u7528\u6211\u7684OpenAI\u5bc6\u94a5\u8bbe\u7f6e\u4e86\u7ec8\u7aef\u73af\u5883\u540e\uff0c\u6211\u8fd0\u884cessay.ts\u6765\u751f\u6210\u4e00\u4e2a\u6563\u6587\u9898\u6750\u7684\u6587\u4ef6\uff0c\u5e76\u8fd0\u884cchatEngine.ts\u6765\u5b9e\u73b0\u6709\u5173\u6b64\u6587\u7ae0\u7684\u67e5\u8be2\u3002<\/p>\n<h3>\u4e3aLLM\u63d0\u4f9b\u4e0a\u4e0b\u6587<\/h3>\n<p>\u6b63\u5982\u4f60\u6240\u770b\u5230\u7684\uff0cLlamaIndex\u975e\u5e38\u5bb9\u6613\u7528\u4e8e\u521b\u5efaLLM\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u80fd\u591f\u9488\u5bf9OpenAI LLM\u548cRAG\u00a0Q&amp;A\u5e94\u7528\u7a0b\u5e8f\u7684\u6587\u4ef6\u6570\u636e\u6e90\u8fdb\u884c\u6d4b\u8bd5\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cLlamaIndex\u96c6\u6210\u4e8640\u591a\u4e2a\u5411\u91cf\u5b58\u50a8\u300140\u591a\u4e2aLLM\u548c160\u591a\u4e2a\u6570\u636e\u6e90\uff1b\u5b83\u9002\u7528\u4e8e\u51e0\u79cd\u4f7f\u7528\u573a\u666f\uff0c\u5305\u62ecQ&amp;A\u95ee\u7b54\u3001\u7ed3\u6784\u5316\u63d0\u53d6\u3001\u804a\u5929\u3001\u8bed\u4e49\u641c\u7d22\u548c\u4ee3\u7406\u5e94\u7528\u7b49\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u5efa\u8bae\u4f60\u8ba4\u771f\u8bc4\u4f30LlamaIndex\u4e0eLangChain\u3001Semantic Kernel\u548cHaystack\u7b49\u6846\u67b6\u3002\u8fd9\u5176\u4e2d\u7684\u4e00\u4e2a\u6216\u591a\u4e2a\u5f88\u53ef\u80fd\u4f1a\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u5f53\u7136\uff0c\u6211\u4e0d\u80fd\u7b3c\u7edf\u5730\u63a8\u8350\u5176\u4e2d\u67d0\u4e00\u4e2a\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u4f1a\u6709\u4e0d\u540c\u7684\u8981\u6c42\u3002<\/p>\n<h4>LlamaIndex\u4f18\u70b9<\/h4>\n<ol data-id=\"o9d5df12-FI13gYUZ\">\n<li data-id=\"ld70c578-h9l8gIj6\">\u5e2e\u52a9\u521b\u5efa\u95ee\u7b54\u3001\u7ed3\u6784\u5316\u63d0\u53d6\u3001\u804a\u5929\u3001\u8bed\u4e49\u641c\u7d22\u548c\u4ee3\u7406\u7b49\u7c7b\u578b\u7684LLM\u5e94\u7528\u7a0b\u5e8f<\/li>\n<li data-id=\"ld70c578-LqZNLp3C\">\u652f\u6301Python\u548cTypeScript<\/li>\n<li data-id=\"ld70c578-hbVDAQCO\">\u6846\u67b6\u662f\u514d\u8d39\u548c\u5f00\u6e90\u7684<\/li>\n<li data-id=\"ld70c578-ltL8V4uD\">\u63d0\u4f9b\u5927\u91cf\u793a\u4f8b\u548c\u96c6\u6210\u7ec4\u4ef6<\/li>\n<\/ol>\n<h4>LlamaIndex\u4e0d\u8db3<\/h4>\n<ol data-id=\"o9d5df12-mCFh89WO\">\n<li data-id=\"ld70c578-YFKmdv5c\">\u4e91\u73af\u5883\u4ec5\u9650\u4e8e\u79c1\u4eba\u9884\u89c8<\/li>\n<li data-id=\"ld70c578-FZECLV6R\">\u8425\u9500\u6709\u70b9\u8a00\u8fc7\u5176\u5b9e<\/li>\n<\/ol>\n<h4>LlamaIndex\u8d39\u7528<\/h4>\n<p>\u5f00\u6e90\uff1a\u514d\u8d39\u3002<\/p>\n<p>LlamaParse\u5bfc\u5165\u670d\u52a1\uff1a\u6bcf\u5468\u514d\u8d39\u652f\u63017K\u9875\u7684\u6587\u6863\uff0c\u7136\u540e\u6bcf1000\u9875\u9700\u8981\u652f\u4ed83\u7f8e\u5143\u3002<\/p>\n<h4>\u5e73\u53f0\u652f\u6301<\/h4>\n<p>\u652f\u6301Python\u548cTypeScript\uff0c\u4ee5\u53ca\u4e91\u7aefSaaS\uff08\u76ee\u524d\u5904\u4e8e\u79c1\u4eba\u9884\u89c8\u72b6\u6001\uff09\u3002<\/p>\n<h3>\u8bd1\u8005\u4ecb\u7ecd<\/h3>\n<p>\u6731\u5148\u5fe0\uff0c51CTO\u793e\u533a\u7f16\u8f91\uff0c51CTO\u4e13\u5bb6\u535a\u5ba2\u3001\u8bb2\u5e08\uff0c\u6f4d\u574a\u4e00\u6240\u9ad8\u6821\u8ba1\u7b97\u673a\u6559\u5e08\uff0c\u81ea\u7531\u7f16\u7a0b\u754c\u8001\u5175\u4e00\u679a\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_20965\" class=\"pvc_stats total_only  \" data-element-id=\"20965\" 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\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\u4e00\u6b3e\u65b0\u7684\u514d\u8d39\u5f00\u6e90\u7684AI\u5f00\u53d1\u6570\u636e\u6846\u67b6\uff0c\u5b83\u652f\u6301\u5411\u91cf\u5b58\u50a8\u3001LLM\u548c\u6570\u636e\u6e90\u96c6\u6210\uff0c\u9002\u7528\u4e8eQ&amp;A\u95ee\u7b54 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_20965\" class=\"pvc_stats total_only  \" data-element-id=\"20965\" 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":20967,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,23,80],"tags":[1181],"class_list":["post-20965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-23","category-80","tag--llm-lla"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/20965","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=20965"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/20965\/revisions"}],"predecessor-version":[{"id":20968,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/20965\/revisions\/20968"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/20967"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=20965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=20965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=20965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}