llama_index导入NebulaGraphStore遇ModuleNotFoundError的解决求助
解决llama_index导入NebulaGraphStore的ModuleNotFoundError问题
修正导入路径:llama-index 0.10.x版本重构了模块结构,原
llama_index.graph_stores路径已废弃,正确导入语句应为:from llama_index.core.graph_stores.nebula import NebulaGraphStore安装Nebula图存储依赖包:llama-index的Nebula集成属于独立子包,需单独安装:
pip install llama-index-graph-stores-nebula验证操作:安装完成后,重新运行导入语句即可正常加载
NebulaGraphStore类。
原因说明:llama-index 0.10+版本进行了模块化拆分,将核心功能与第三方集成功能分离,原graph_stores模块被移至llama_index.core下,且第三方图存储的支持需要单独安装对应子包,仅更新核心包无法获取该模块。
内容的提问来源于stack exchange,提问作者Kaihua Hou
相关产品推荐
相关产品推荐

