Un chatbot d'IA qui peut être constamment appris et s'engage à permettre à chacun de bénéficier de l'IA.

docker run --name my-postgres
-e POSTGRES_PASSWORD=postgres
-p 5432:5432
-v ./pgsql/data:/var/lib/postgresql/data
-d pgvector/pgvector:pg16Remplacez l'option de connexion dans le fichier .env
Reportez-vous au lien pour remplacer l'option dashscope_api_key dans le fichier .env
Lien de référence
Cette section est facultative, mais peut être utile pour les nouveaux utilisateurs de Python.
D'une manière générale, un environnement virtuel peut résoudre des problèmes tels que les conflits de package et le python multi-version. Conda est une option pour gérer les packages et les environnements. Sur Linux, Miniconda peut être téléchargé à partir d'ici et installé sous forme d'instructions.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.shConfiguration de la source du miroir
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yesCréez un environnement virtuel Chatx avec Python 3.11 (> = 3.9)
conda create -n chatx_py311 python==3.11 -yActiver l'environnement virtuel
conda activate chatx_py311git clone https://github.com/WujiLab/chatx.git
cd chatxconda install poetry -y
poetry installmkdir -p ~ /.pip
cat > ~ /.pip/pip.conf << EOF
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple/
EOF
pip install poetry
poetry installalembic upgrade headpython server/apiserver.pyChatx est ouvert avec une licence MIT.