mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-10 05:19:44 +00:00
2.3 KiB
2.3 KiB
FAQ
Q1: text2vec-large-chinese not found
A1: make sure you have download text2vec-large-chinese embedding model in right way
centos:yum install git-lfs
ubuntu:apt-get install git-lfs -y
macos:brew install git-lfs
cd models
git lfs clone https://huggingface.co/GanymedeNil/text2vec-large-chinese
Q2: execute pip install -r requirements.txt
error, found some package cannot find correct version.
A2: change the pip source.
# pypi
$ pip install -r requirements.txt -i https://pypi.python.org/simple
or
# tsinghua
$ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
or
# aliyun
$ pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
Q3:Access denied for user 'root@localhost'(using password :NO)
A3: make sure you have installed mysql instance in right way
Docker:
docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest
Normal: download mysql instance
Q4:When I use openai(MODEL_SERVER=proxyllm) to chat
A4: make sure your openapi API_KEY is available
Q5:When I Chat Data and Chat Meta Data, I found the error
A5: you have not create your database and table
1.create your database.
mysql> create database {$your_name}
mysql> use {$your_name}
2.create table {$your_table} and insert your data. eg:
mysql>CREATE TABLE `users` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL COMMENT '用户名',
`password` varchar(50) NOT NULL COMMENT '密码',
`email` varchar(50) NOT NULL COMMENT '邮箱',
`phone` varchar(20) DEFAULT NULL COMMENT '电话',
PRIMARY KEY (`id`),
KEY `idx_username` (`username`) COMMENT '索引:按用户名查询'
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COMMENT='聊天用户表'