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

相关推荐
Shawn_Shawn3 小时前
openspec使用手册
llm·ai编程·claude
Cosolar4 小时前
Nanobot 深度解析:超轻量级通用 AI Agent 运行时的架构设计与实战指南
gpt·llm·ai编程
Cosolar4 小时前
Nanobot:超轻量个人 AI 智能体
chatgpt·langchain·llm
攀登的牵牛花9 小时前
我用 Mac 折腾本地生图一整天,实现了本地文生图自由
前端·llm
花花少年10 小时前
Windows系统下快速体验Claude code
llm·agent·claude code
CoderJia程序员甲10 小时前
GitHub 热榜项目 - 日榜(2026-04-12)
ai·大模型·llm·github·ai教程
@atweiwei10 小时前
用 Rust 构建agent的 LLM 应用的高性能框架
开发语言·后端·rust·langchain·eclipse·llm·agent
QC·Rex13 小时前
向量数据库架构与应用实战:从原理到生产部署
向量数据库·rag·相似度搜索·hnsw 算法·ai 基础设施
Pkmer14 小时前
工程师眼中的Prompt提示词
llm·agent
deephub14 小时前
Karpathy的LLM Wiki:一种将RAG从解释器模式升级为编译器模式的架构
人工智能·大语言模型·知识库·rag