{"id":4372,"date":"2024-07-28T22:28:18","date_gmt":"2024-07-28T14:28:18","guid":{"rendered":"https:\/\/www.aqwu.net\/wp\/?p=4372"},"modified":"2024-07-28T22:45:51","modified_gmt":"2024-07-28T14:45:51","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-graphrag","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=4372","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 GraphRAG\u00a0"},"content":{"rendered":"\n<p>GraphRAG \u662f\u4e00\u79cd\u7ed3\u6784\u5316\u7684\u3001\u5206\u5c42\u7684\u68c0\u7d22\u589e\u5f3a\u751f\u6210 \uff08RAG\uff09 \u65b9\u6cd5\uff0c\u800c\u4e0d\u662f\u6734\u7d20\u7684\u8bed\u4e49\u641c\u7d22 \u4f7f\u7528\u7eaf\u6587\u672c\u7247\u6bb5\u7684\u65b9\u6cd5\u3002GraphRAG \u8fc7\u7a0b\u6d89\u53ca\u4ece\u539f\u59cb\u6587\u672c\u4e2d\u63d0\u53d6\u77e5\u8bc6\u56fe\u8c31\u3001\u6784\u5efa\u793e\u533a\u5c42\u6b21\u7ed3\u6784\u3001\u4e3a\u8fd9\u4e9b\u793e\u533a\u751f\u6210\u6458\u8981\uff0c\u7136\u540e\u5728\u6267\u884c\u57fa\u4e8e RAG \u7684\u4efb\u52a1\u65f6\u5229\u7528\u8fd9\u4e9b\u7ed3\u6784\u3002<\/p>\n\n\n\n<p>\u8981\u4e86\u89e3\u6709\u5173 GraphRAG \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u6765\u589e\u5f3a\u60a8\u7684 LLM \u63a8\u7406\u79c1\u6709\u6570\u636e\u7684\u80fd\u529b\uff0c\u8bf7\u8bbf\u95ee&nbsp;<a href=\"https:\/\/www.microsoft.com\/en-us\/research\/blog\/graphrag-unlocking-llm-discovery-on-narrative-private-data\/\">Microsoft Research \u535a\u5ba2\u6587\u7ae0<\/a>\u3002<\/p>\n\n\n\n<p>GraphRAG \u7684 github: <a href=\"https:\/\/github.com\/microsoft\/graphrag\">https:\/\/github.com\/microsoft\/graphrag<\/a><\/p>\n\n\n\n<p>\u6307\u5bfc\u94fe\u63a5\uff1a<a href=\"https:\/\/microsoft.github.io\/graphrag\/\">https:\/\/microsoft.github.io\/graphrag\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f00\u59cb\u4f7f\u7528 GraphRAG \ud83d\ude80<\/h2>\n\n\n\n<p>\u8981\u5f00\u59cb\u4f7f\u7528 GraphRAG\uff0c\u8bf7\u67e5\u770b<a href=\"https:\/\/microsoft.github.io\/graphrag\/posts\/get_started\"><em>\u5165\u95e8<\/em><\/a>\u6307\u5357\u3002 \u5982\u9700\u66f4\u6df1\u5165\u5730\u4e86\u89e3\u4e3b\u8981\u5b50\u7cfb\u7edf\uff0c\u8bf7\u8bbf\u95ee<a href=\"https:\/\/microsoft.github.io\/graphrag\/posts\/index\/overview\">\u7d22\u5f15\u5668<\/a>\u548c<a href=\"https:\/\/microsoft.github.io\/graphrag\/posts\/query\/overview\">\u67e5\u8be2<\/a>\u5305\u7684\u6587\u6863\u9875\u9762\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GraphRAG \u4e0e\u57fa\u7ebf RAG \ud83d\udd0d<\/h2>\n\n\n\n<p>\u68c0\u7d22\u589e\u5f3a\u751f\u6210 \uff08RAG\uff09 \u662f\u4e00\u79cd\u4f7f\u7528\u771f\u5b9e\u4e16\u754c\u4fe1\u606f\u6539\u8fdb LLM \u8f93\u51fa\u7684\u6280\u672f\u3002\u8fd9\u79cd\u6280\u672f\u662f\u5927\u591a\u6570\u57fa\u4e8e LLM \u7684\u5de5\u5177\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u5927\u591a\u6570 RAG \u65b9\u6cd5\u4f7f\u7528\u5411\u91cf\u76f8\u4f3c\u6027\u4f5c\u4e3a\u641c\u7d22\u6280\u672f\uff0c\u6211\u4eec\u79f0\u4e4b\u4e3a<em>\u57fa\u7ebf RAG<\/em>\u3002GraphRAG \u4f7f\u7528\u77e5\u8bc6\u56fe\u8c31\u5728\u63a8\u7406\u590d\u6742\u4fe1\u606f\u65f6\u5927\u5e45\u63d0\u9ad8\u95ee\u7b54\u6027\u80fd\u3002RAG \u6280\u672f\u5728\u5e2e\u52a9 LLM \u63a8\u7406<em>\u79c1\u6709\u6570\u636e\u96c6<\/em>\u65b9\u9762\u663e\u793a\u51fa\u524d\u666f\u2014\u2014LLM \u6ca1\u6709\u63a5\u53d7\u8fc7\u8bad\u7ec3\u4e14\u4ee5\u524d\u4ece\u672a\u89c1\u8fc7\u7684\u6570\u636e\uff0c\u4f8b\u5982\u4f01\u4e1a\u7684\u4e13\u6709\u7814\u7a76\u3001\u5546\u4e1a\u6587\u6863\u6216\u901a\u4fe1\u3002<em>\u57fa\u7ebf RAG<\/em>&nbsp;\u662f\u4e3a\u4e86\u5e2e\u52a9\u89e3\u51b3\u6b64\u95ee\u9898\u800c\u521b\u5efa\u7684\uff0c\u4f46\u6211\u4eec\u89c2\u5bdf\u5230\u57fa\u7ebf RAG \u6027\u80fd\u975e\u5e38\u5dee\u7684\u60c5\u51b5\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u57fa\u7ebf RAG \u96be\u4ee5\u5c06\u8fd9\u4e9b\u70b9\u8fde\u63a5\u8d77\u6765\u3002\u5f53\u56de\u7b54\u4e00\u4e2a\u95ee\u9898\u9700\u8981\u901a\u8fc7\u5176\u5171\u4eab\u5c5e\u6027\u904d\u5386\u4e0d\u540c\u7684\u4fe1\u606f\u7247\u6bb5\u4ee5\u63d0\u4f9b\u65b0\u7684\u7efc\u5408\u89c1\u89e3\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002<\/li>\n\n\n\n<li>\u5f53\u88ab\u8981\u6c42\u5728\u5927\u578b\u6570\u636e\u96c6\u5408\u751a\u81f3\u5355\u4e00\u7684\u5927\u578b\u6587\u6863\u4e2d\u5168\u9762\u7406\u89e3\u6c47\u603b\u7684\u8bed\u4e49\u6982\u5ff5\u65f6\uff0c\u57fa\u7ebf RAG \u7684\u8868\u73b0\u5f88\u5dee\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6280\u672f\u754c\u6b63\u5728\u52aa\u529b\u5f00\u53d1\u6269\u5c55\u548c\u589e\u5f3aRAG\u7684\u65b9\u6cd5\u3002Microsoft Research \u7684\u65b0\u65b9\u6cd5 GraphRAG \u4f7f\u7528 LLM \u57fa\u4e8e\u8f93\u5165\u8bed\u6599\u5e93\u521b\u5efa\u77e5\u8bc6\u56fe\u8c31\u3002\u6b64\u56fe\u5f62\u4ee5\u53ca\u793e\u533a\u6458\u8981\u548c\u56fe\u5f62\u673a\u5668\u5b66\u4e60\u8f93\u51fa\u7528\u4e8e\u589e\u5f3a\u67e5\u8be2\u65f6\u7684\u63d0\u793a\u3002GraphRAG \u5728\u56de\u7b54\u4e0a\u8ff0\u4e24\u7c7b\u95ee\u9898\u65b9\u9762\u663e\u793a\u51fa\u5b9e\u8d28\u6027\u7684\u6539\u8fdb\uff0c\u5c55\u793a\u4e86\u4f18\u4e8e\u4ee5\u524d\u5e94\u7528\u4e8e\u79c1\u6709\u6570\u636e\u96c6\u7684\u5176\u4ed6\u65b9\u6cd5\u7684\u667a\u80fd\u6216\u638c\u63e1\u80fd\u529b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GraphRAG \u6d41\u7a0b \ud83e\udd16<\/h2>\n\n\n\n<p>GraphRAG \u5efa\u7acb\u5728\u6211\u4eec\u4e4b\u524d\u4f7f\u7528\u56fe\u5f62\u673a\u5668\u5b66\u4e60<a href=\"https:\/\/www.microsoft.com\/en-us\/worklab\/patterns-hidden-inside-the-org-chart\">\u7684\u7814\u7a76<\/a>\u548c<a href=\"https:\/\/github.com\/graspologic-org\/graspologic\">\u5de5\u5177<\/a>\u4e4b\u4e0a\u3002GraphRAG \u8fc7\u7a0b\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6307\u6570<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06\u8f93\u5165\u8bed\u6599\u5e93\u5212\u5206\u4e3a\u4e00\u7cfb\u5217 TextUnits\uff0c\u8fd9\u4e9b TextUnit \u5145\u5f53\u6d41\u7a0b\u5176\u4f59\u90e8\u5206\u7684\u53ef\u5206\u6790\u5355\u5143\uff0c\u5e76\u5728\u6211\u4eec\u7684\u8f93\u51fa\u4e2d\u63d0\u4f9b\u7ec6\u7c92\u5ea6\u7684\u5f15\u7528\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528 LLM \u4ece TextUnits \u4e2d\u63d0\u53d6\u6240\u6709\u5b9e\u4f53\u3001\u5173\u7cfb\u548c\u952e\u58f0\u660e\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528&nbsp;<a href=\"https:\/\/arxiv.org\/pdf\/1810.08473.pdf\">Leiden \u6280\u672f<\/a>\u5bf9\u56fe\u5f62\u6267\u884c\u5206\u5c42\u805a\u7c7b\u3002\u8981\u76f4\u89c2\u5730\u770b\u5230\u8fd9\u4e00\u70b9\uff0c\u8bf7\u67e5\u770b\u4e0a\u9762\u7684\u56fe 1\u3002\u6bcf\u4e2a\u5706\u5708\u90fd\u662f\u4e00\u4e2a\u5b9e\u4f53\uff08\u4f8b\u5982\uff0c\u4e00\u4e2a\u4eba\u3001\u4e00\u4e2a\u5730\u65b9\u6216\u7ec4\u7ec7\uff09\uff0c\u5927\u5c0f\u4ee3\u8868\u5b9e\u4f53\u7684\u7a0b\u5ea6\uff0c\u989c\u8272\u4ee3\u8868\u5176\u793e\u533a\u3002<\/li>\n\n\n\n<li>\u81ea\u4e0b\u800c\u4e0a\u751f\u6210\u6bcf\u4e2a\u793e\u533a\u53ca\u5176\u7ec4\u6210\u90e8\u5206\u7684\u6458\u8981\u3002\u8fd9\u6709\u52a9\u4e8e\u5bf9\u6570\u636e\u96c6\u7684\u6574\u4f53\u7406\u89e3\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u67e5\u8be2<\/h3>\n\n\n\n<p>\u5728\u67e5\u8be2\u65f6\uff0c\u8fd9\u4e9b\u7ed3\u6784\u7528\u4e8e\u5728\u56de\u7b54\u95ee\u9898\u65f6\u4e3a LLM \u4e0a\u4e0b\u6587\u7a97\u53e3\u63d0\u4f9b\u6750\u6599\u3002\u4e3b\u8981\u7684\u67e5\u8be2\u6a21\u5f0f\u6709\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u901a\u8fc7\u5229\u7528\u793e\u533a\u6458\u8981\u5bf9\u8bed\u6599\u5e93\u7684\u6574\u4f53\u95ee\u9898<a href=\"https:\/\/microsoft.github.io\/graphrag\/posts\/query\/0-global_search\"><em>\u8fdb\u884c\u5168\u5c40\u641c\u7d22<\/em><\/a>\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/microsoft.github.io\/graphrag\/posts\/query\/1-local_search\"><em>\u672c\u5730\u641c\u7d22<\/em><\/a>\uff0c\u901a\u8fc7\u6247\u5f62\u6269\u5c55\u5230\u5176\u90bb\u5c45\u548c\u76f8\u5173\u6982\u5ff5\u6765\u5bf9\u7279\u5b9a\u5b9e\u4f53\u8fdb\u884c\u63a8\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u63d0\u793a\u8c03\u4f18<\/h3>\n\n\n\n<p>\u5728\u6570\u636e\u5f00\u7bb1\u5373\u7528\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528&nbsp;<em>GraphRAG<\/em>&nbsp;\u53ef\u80fd\u65e0\u6cd5\u4ea7\u751f\u6700\u4f73\u7ed3\u679c\u3002 \u6211\u4eec\u5f3a\u70c8\u5efa\u8bae\u60a8\u6309\u7167\u6211\u4eec\u6587\u6863\u4e2d\u7684<a href=\"https:\/\/microsoft.github.io\/graphrag\/posts\/prompt_tuning\/overview\/\">\u63d0\u793a\u8c03\u6574\u6307\u5357<\/a>\u6765\u5fae\u8c03\u60a8\u7684\u63d0\u793a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u672c\u5730 ollama \u5b9e\u73b0 GraphRAG<\/strong><\/h2>\n\n\n\n<p>GraphRAG \u786e\u5b9e\u6709\u4f7f\u7528 Ollama \u5b9e\u73b0\u7684\u672c\u5730 LLM \u65b9\u6848\uff0c\u5b83\u652f\u6301\u591a\u79cd\u672c\u5730\u6a21\u578b\uff0c\u5982 llama3\u3001mistral \u7b49\u3002\u8fd9\u79cd\u9002\u914d\u5141\u8bb8\u9ad8\u6548\u4e14\u6210\u672c\u4f4e\u5ec9\u7684\u672c\u5730\u63a8\u7406\uff0c\u6d88\u9664\u4e86\u5bf9\u6602\u8d35\u7684 OpenAI \u6a21\u578b\u7684\u9700\u6c42\u3002\u8bbe\u7f6e\u8fc7\u7a0b\u5305\u62ec\u521b\u5efa\u4e00\u4e2a conda \u73af\u5883\u3001\u5b89\u88c5 Ollama \u548c\u4e0b\u8f7d\u6240\u9700\u7684\u6a21\u578b\u3002\u914d\u7f6e\u8fd8\u5305\u62ec\u901a\u8fc7 <code>settings.yaml<\/code> \u6587\u4ef6\u7ba1\u7406\u5d4c\u5165\u548c LLM \u6a21\u578b\u3002<\/p>\n\n\n\n<p>\u6709\u5173\u66f4\u8be6\u7ec6\u7684\u8bf4\u660e\u548c\u8bbe\u7f6e\u6b65\u9aa4\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b GitHub \u4ed3\u5e93\u548c\u6307\u5357\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/TheAiSingularity\/graphrag-local-ollama\">\u4f7f\u7528 Ollama \u7684 GraphRAG<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/itsaquestion\/GraphRAG-Ollama-UI-x\">\u5e26\u6709\u4ea4\u4e92\u5f0f UI \u7684 GraphRAG<\/a><\/li>\n<\/ol>\n\n\n\n<p>\u8fd9\u4e9b\u8d44\u6e90\u63d0\u4f9b\u4e86\u5b89\u88c5\u548c\u4f7f\u7528\u672c\u5730 LLM \u7684 GraphRAG \u7684\u5168\u9762\u6307\u5357\uff0c\u5305\u62ec\u4ee3\u7801\u793a\u4f8b\u548c\u8bbe\u7f6e\u8bf4\u660e\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GraphRAG \u662f\u4e00\u79cd\u7ed3\u6784\u5316\u7684\u3001\u5206\u5c42\u7684\u68c0\u7d22\u589e\u5f3a\u751f\u6210 \uff08RAG\uff09 \u65b9\u6cd5\uff0c\u800c\u4e0d\u662f\u6734\u7d20\u7684\u8bed\u4e49\u641c\u7d22 \u4f7f\u7528\u7eaf\u6587\u672c\u7247\u6bb5\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[444,313,289,443,442,312],"tags":[527,422],"class_list":["post-4372","post","type-post","status-publish","format-standard","hentry","category-ai","category-chatgpt","category-gpt","category-llm","category-llms","category-openai","tag-graphrag","tag-rag"],"views":3111,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4372"}],"version-history":[{"count":3,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4372\/revisions"}],"predecessor-version":[{"id":4375,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4372\/revisions\/4375"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}