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

相关推荐
CoderLiu5 小时前
用这个MCP,只给大模型一个figma链接就能直接导出图片,还能自动压缩上传?
前端·llm·mcp
在未来等你9 小时前
RAG实战指南 Day 4:LlamaIndex框架实战指南
大语言模型·rag·llamaindex·检索增强生成·ai开发
智泊AI10 小时前
大语言模型LLM底层技术原理到底是什么?大型语言模型如何工作?
llm
moonless022210 小时前
🌈Transformer说人话版(二)位置编码 【持续更新ing】
人工智能·llm
小爷毛毛_卓寿杰10 小时前
基于大模型与知识图谱的对话引导意图澄清系统技术解析
人工智能·llm
聚客AI10 小时前
解构高效提示工程:分层模型、文本扩展引擎与可视化调试全链路指南
人工智能·llm·掘金·日新计划
AI大模型14 小时前
LangGraph官方文档笔记(4)——提示聊天机器人
程序员·langchain·llm
Baihai_IDP14 小时前
vec2text 技术已开源!一定条件下,文本嵌入向量可“近乎完美地”还原
人工智能·面试·llm
养心进行时15 小时前
为什么模型训练中会有“机器评分高,但人工评分却很差”的情况?
llm
养心进行时15 小时前
大模型微调后,可上线的标准是什么?
llm