eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.86k stars 1.87k forks source link

[Bug]GraphRAG:CypherException #2044

Open maco6096 opened 2 months ago

maco6096 commented 2 months ago

Search before asking

Operating system information

Linux

Python version information

3.10

DB-GPT version

latest release

Related scenes

Installation Information

Device information

CPU

Models information

LLM: ollama_proxyllm embeding: normic-embed-txt

What happened

通过web ui添加tugraph 类型的文档时,报一下错误:

Traceback (most recent call last): File "/data/DB-GPT-0.6.0/dbgpt/datasource/conn_tugraph.py", line 101, in run return list(result) File "/data/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/neo4j/_sync/work/result.py", line 378, in iter self._connection.fetch_message() File "/data/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/neo4j/_sync/io/_common.py", line 178, in inner func(*args, kwargs) File "/data/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/neo4j/_sync/io/_bolt.py", line 860, in fetch_message res = self._process_message(tag, fields) File "/data/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/neo4j/_sync/io/_bolt4.py", line 368, in _process_message response.on_failure(summary_metadata or {}) File "/data/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/neo4j/_sync/io/_common.py", line 245, in on_failure raise Neo4jError.hydrate(metadata) neo4j.exceptions.DatabaseError: {code: CypherException} {message: CypherException: visit(...) failed at src/cypher/arithmetic/ast_expr_evaluator.cpp:480}

What you expected to happen

正常添加成功

How to reproduce

webui --> 创建知识库-> tugraph--> 添加数据源 -->添加pdf文档--》下一步就报错

Additional context

No response

Are you willing to submit PR?

Aries-ckt commented 2 months ago

have you installed plugin?

pip install dbgpt-tugraph-plugins==0.1.0rc1 -U -i https://pypi.org/simple
maco6096 commented 2 months ago

have you installed plugin?

pip install dbgpt-tugraph-plugins==0.1.0rc1 -U -i https://pypi.org/simple

试了一下,显示之前已经安装过这个包了:

(dbgpt_env) [app@e1 DB-GPT-0.6.0]$ pip install dbgpt-tugraph-plugins==0.1.0rc1 -U Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: dbgpt-tugraph-plugins==0.1.0rc1 in /data/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages (0.1.0rc1)

adogwangwang commented 1 month ago

pip install dbgpt-tugraph-plugins==0.1.0rc1

您好,请问您解决了吗?我遇到同样的问题,想请教下

maco6096 commented 1 month ago

使用0.6.1版本就没问题了。之前的版本有bug

在 2024-10-23 11:27:22,"adogwangwang" @.***> 写道:

pip install dbgpt-tugraph-plugins==0.1.0rc1

您好,请问您解决了吗?我遇到同样的问题,想请教下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>