DB-GPT
DB-GPT copied to clipboard
[BUG]: sql生成与诊断 报AttributeError: 'ChatWithDbQA' object has no attribute 'tables'
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here. do you have your local mysql environment, you should create database in your local mysql environment
I also met this error at beginning, I do have a docker hosted mysql and created specific db for this test. until I restarted the webserver, I found out that it fetchs the DB info when you start the webserver. So seems it persists the info into vectordb for quick search. also means the db dialogue is not "realtime" querying the metadata info of your MySQL DB, once you do some changes on your db, you have to restart the webserver? how can I refresh the db info without restarting, wish can do it on GUI, thanks.
2023-06-27 17:15:29 | INFO | chromadb.db.duckdb | Persisting DB to disk, putting it in the save folder: /home/aigc/workplace/DB-GPT/pilot/data/tpch_region_ts.vectordb 2023-06-27 17:15:29 | INFO | langchain.embeddings | db summary embedding success
Please try the latest version v0.4.2, this issue will be closed.