NVIDIA / NVIDIA/GenerativeAIExamples

Knowledge Graph Rag (Community) - Steps Missing

未关闭
#281 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Jupyter Notebook
星标
4.2k
派生
1.1k
平均合并
10 小时 15 分钟
30 天内合并 PR
1

描述

I am trying to run the Community Graph RAG example as mentioned here. But it looks like there are some steps missing between 6 and 7. When I am doing the python server.py as mentioned in Step 7 I am getting the following error

Traceback (most recent call last):
  File "D:\KnowledgeGrpahRAG\GenerativeAIExamples\community\knowledge_graph_rag\backend\server.py", line 18, in <module>
    from routers import ui_backend,chat,evaluation,visualization
  File "D:\KnowledgeGrpahRAG\GenerativeAIExamples\community\knowledge_graph_rag\backend\routers\chat.py", line 42, in <module>
    KG_GRAPHML_PATH = os.path.join(DATA_DIR, "knowledge_graph.graphml")
  File "C:\Users\avish\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 104, in join
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

It is looking for knowledge_graph.graphml which possibly is created through some other scripts but not mentioned there. Possibly it will need pre-execution of lc_graph.py under utils folder. Any help to figure out what to do would be appreciated.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

阅读 Community Graph RAG 中围绕步骤 6 和 7 的说明,然后检查 community/knowledge_graph_rag/backend/server.py 以及提到的 utils/lc_graph.py。记录 knowledge_graph.graphml 所缺少的前置条件或生成步骤,以便用户可以按照示例操作并在没有报告的错误的情况下启动 server.py。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
ai, documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。