chatx
v1.0.0
AI Chatbot yang dapat terus dipelajari dan berkomitmen untuk memungkinkan semua orang mendapat manfaat dari AI.

docker run --name my-postgres
-e POSTGRES_PASSWORD=postgres
-p 5432:5432
-v ./pgsql/data:/var/lib/postgresql/data
-d pgvector/pgvector:pg16Ganti opsi koneksi di file .env
Lihat tautan untuk mengganti opsi dashscope_api_key di file .env
Tautan referensi
Bagian ini opsional, tetapi mungkin berguna untuk pengguna Python baru.
Secara umum, lingkungan virtual dapat menyelesaikan masalah seperti konflik paket dan python multi-versi. Conda adalah opsi untuk mengelola paket dan lingkungan. Di Linux, Miniconda dapat diunduh dari sini dan diinstal sebagai instruksi.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.shMenyiapkan sumber cermin
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 yesBuat Lingkungan Virtual ChatX dengan Python 3.11 (> = 3.9)
conda create -n chatx_py311 python==3.11 -yAktifkan lingkungan virtual
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 bersumber terbuka dengan lisensi MIT.