TsinghuaDatabaseGroup / DB-GPT

An LLM Based Diagnosis System (https://arxiv.org/pdf/2312.01454.pdf)
http://dbgpt.dbmind.cn/
Apache License 2.0
464 stars 64 forks source link

TypeError When Using Diagnosis function. #96

Open IamWWT opened 4 months ago

IamWWT commented 4 months ago

run python startup.py -a and operate in webpage. The normal chat and knowledge chat is ok. after upload the project's test file of test_cases/xx.json,click diagnosis,for a while, the error occur as following and。

` ConfigurationExpert Diagnosis!

by the way, backend's gpu service is started by fastchat project, and i run chatglm3-6b in fastchat's openai-api for diagnosis function with a cuda of 24G.

zhouxh19 commented 4 months ago

What is the data within your ./workload_info.json? It looks like the value of "workload_statistics" is an integer.

image
IamWWT commented 4 months ago

the "workload_statistics" value is 0 in the file of workload_info.json. i see this value obtained from the postgresql, i deploy pgsql12 with docker, and i had run python init_database.py --recreate-vs without error. i login in the pgsql and see the table with \l as following.

is there anything i've missed in my operations with the postgreSQL database?


(base) hhw@hhw:~$ docker exec -it postgres12   /bin/bash
root@732d08472db4:/# 
root@732d08472db4:/# 
root@732d08472db4:/# 
root@732d08472db4:/# 
root@732d08472db4:/# 
root@732d08472db4:/# PGPASSWORD=postgrespw psql -U postgres
psql (12.17 (Debian 12.17-1.pgdg120+1))
Type "help" for help.

postgres=# 
postgres=# 
postgres=# 
postgres=# \l
                                 List of databases
   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges   
-----------+----------+----------+------------+------------+-----------------------
 postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 | 
 template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
           |          |          |            |            | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
           |          |          |            |            | postgres=CTc/postgres
(3 rows)

postgres=# 
zhouxh19 commented 4 months ago

Your postgresql looks fine. Make sure the test case (like ./diagnostic_files/testing_cases_1.json) can be successfully executed.

image

如果有任何其他问题(比如如何构建自己的alert),可以通过扫码进群交流。