Neo4j+LLM+RAG 环境配置报错处理

开发KG+LLM+RAG程序时遇到以下报错,记录下处理方案:

ValueError: Could not use APOC procedures. Please ensure the APOC plugin is installed in Neo4j and that 'apoc.meta.data()' is allowed in Neo4j configuration

这个参考文章:link
报错原因: 没有安装APOC插件

解决方案,安装插件。我的版本是:neo4j-community-4.4.26

下载对应的:apoc-4.4.0.26-all.jar

link

复制到 $NEO4J_HOME/plugins/

neo4j.exceptions.ClientError: {code: Neo.ClientError.Procedure.ProcedureRegistrationFailed} {message: apoc.meta.data is unavailable because it is sandboxed and has dependencies outside of the sandbox. Sandboxing is controlled by the dbms.security.procedures.unrestricted setting. Only unrestrict procedures you can trust with access to database internals.}

解决方法:

打开Neo4j的配置文件(通常是neo4j.conf),找到dbms.security.procedures.unrestricted这一项。确保该项设置为允许使用apoc插件。你可以将其设置为apoc.*,这将允许所有apoc的过程,或者你也可以根据需要设置更具体的值。

重启Neo4j:保存配置文件并重启Neo4j数据库,以使新的安全设置生效。

相关推荐
Hank_Liu3 小时前
使用Wireshark抓包看看MCP背后的请求链路
llm
SLY司赖3 小时前
大模型应用开发之LLM入门
语言模型·chatgpt·llm
CodeDevMaster4 小时前
browser-use:AI驱动的浏览器自动化工具使用指南
python·llm
带刺的坐椅5 小时前
开发 MCP Proxy(代理)也可以用 Solon AI MCP 哟!
java·ai·llm·solon·mcp·mcp-server·mcp-client
胡攀峰12 小时前
第12章 微调生成模型
人工智能·大模型·llm·sft·强化学习·rlhf·指令微调
RUNTIME20 小时前
大模型微调实操记录
llm
数据智能老司机20 小时前
构建具备自主性的人工智能系统——探索协调者、工作者和委托者方法
深度学习·llm·aigc
数据智能老司机20 小时前
构建具备自主性的人工智能系统——使代理能够使用工具和进行规划
深度学习·llm·aigc
姚毛毛1 天前
Windows上,10分钟构建一个本地知识库
python·ai·rag