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.39k stars 1.77k forks source link

[Bug] [GraphRAG] Bug title graph_store ERROR: ERROR create graph store failed: Query execution failed: {code: PluginDisabled} #2012

Closed ygbingo closed 2 weeks ago

ygbingo commented 2 weeks ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

Installation Information

Device information

CPU: Xeon Gold 6342 CPU GPU: 0

Models information

LLM: tongyi_proxyllm GRAPH_STORE_TYPE=TuGraph GRAPH_COMMUNITY_SUMMARY_ENABLED=True

What happened

I create a knowledge graph at version:0.5.10, after I increase the version to 0.6.0, I cannot see the knowledge detail.

space delete error Query execution failed: {code: PluginDisabled} {message: No permission to load or delete plugin, please use correct config and restart server! This function has security risks, please enable it with caution!}

What you expected to happen

I build a image by myself

FROM dbgpt:v0.6.0
RUN pip3 install neo4j
RUN pip3 install dbgpt-tugraph,plugins==0.1.0rc1 -U -i https://pypi.org/simple

I start the docker-compose like:

tugraph:
  image: tugraph/tugraph-runtime-centos7:latest
  container name:tugraph
  ports :
  - 7870:7078
  - 7687:7687
  environment:
  - ENABLE PLUGIN=True
webserver:
  image: dbgpt-tugraph:ve.6.0
  command: python3 dbgpt/app/dbgpt_server.py
  environment:
    LOCAL DB HOST=db
    LOCAL DB PASSNORD=Sec@2024
    ALLOWLISTED PLUGINS=db dashboard

How to reproduce

  1. Go to : Construct APP
  2. Go to: Knowledge
  3. Click Delete that knowledge Graph

Additional context

No response

Are you willing to submit PR?

ygbingo commented 2 weeks ago

微信图片编辑_20240912092318

ygbingo commented 2 weeks ago

I change the docker-compose file , and fixed that problem

tugraph:
    image: docker-hub-1cc.pages.dev/tugraph/tugraph-runtime-centos7:latest
    container_name: tugraph
    ports:
      - 7071:7070
      - 7688:7687
    volumes:
      - /opt/tugraph/data:/var/lib/lgraph/data
    command: lgraph_server -d run --enable_plugin true