Ein KI -Chatbot, der ständig gelernt werden kann und sich dafür einsetzt, dass jeder von der KI profitieren kann.

docker run --name my-postgres
-e POSTGRES_PASSWORD=postgres
-p 5432:5432
-v ./pgsql/data:/var/lib/postgresql/data
-d pgvector/pgvector:pg16Ersetzen Sie die Verbindungsoption in der Datei .env
Weitere Informationen finden Sie in der Option DashScope_API_Key in der Datei .env.
Referenzlink
Dieser Abschnitt ist optional, kann jedoch für neue Python -Benutzer nützlich sein.
Im Allgemeinen kann eine virtuelle Umgebung Probleme wie Paketkonflikte und Multi-Version-Python lösen. Conda ist eine Option zum Verwalten von Paketen und Umgebungen. Unter Linux kann Miniconda von hier heruntergeladen und als Anweisungen installiert werden.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.shEinrichten der Spiegelquelle
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 yesErstellen Sie eine virtuelle Chatx -Umgebung mit Python 3.11 (> = 3.9)
conda create -n chatx_py311 python==3.11 -yAktivieren Sie die virtuelle Umgebung
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 ist mit einer MIT -Lizenz offen bezogen.