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数据库,以使新的安全设置生效。

相关推荐
余衫马34 分钟前
大语言模型(LLM)领域细分方向解析
人工智能·语言模型·自然语言处理·llm·领域方向
大模型教程2 小时前
万字详解让大模型写出好代码:上下文窗口的工程化实践
程序员·llm·agent
大模型教程2 小时前
AI大模型从0到1:你的90天蜕变计划,告别小白直通前沿!
程序员·llm·agent
AI大模型2 小时前
RAG彻底爆了!一文读懂其架构演进及核心要点
程序员·llm·agent
阿加犀智能4 小时前
QCS8550运行ModelFarm上的DeepSeek-R1-Distill-Qwen-7B模型
llm
AI大模型5 小时前
用Macbook微调Qwen3!手把手教你用微调给Qwen起一个新名字
程序员·llm·agent
智泊AI7 小时前
Agent(智能体)入门篇 | 什么是agent?
llm
叶楊9 小时前
数据处理常用函数
neo4j
Asthenia04121 天前
给小白讲神经网络:从全连接到注意力机制的铺垫
llm
玄魂1 天前
VChart 官网上线 智能助手与分享功能
前端·llm·数据可视化