chatx
v1.0.0
AI chatbot ที่สามารถเรียนรู้อยู่ตลอดเวลาและมุ่งมั่นที่จะอนุญาตให้ทุกคนได้รับประโยชน์จาก AI

docker run --name my-postgres
-e POSTGRES_PASSWORD=postgres
-p 5432:5432
-v ./pgsql/data:/var/lib/postgresql/data
-d pgvector/pgvector:pg16แทนที่ตัวเลือกการเชื่อมต่อในไฟล์. ENV
อ้างถึงลิงก์เพื่อแทนที่ตัวเลือก dashscope_api_key ในไฟล์. env
ลิงค์อ้างอิง
ส่วนนี้เป็นทางเลือก แต่อาจเป็นประโยชน์สำหรับผู้ใช้ Python ใหม่
โดยทั่วไปแล้วสภาพแวดล้อมเสมือนจริงสามารถแก้ไขปัญหาต่าง ๆ เช่นความขัดแย้งของแพ็คเกจและงูหลามหลายรุ่น Conda เป็นตัวเลือกในการจัดการแพ็คเกจและสภาพแวดล้อม บน Linux สามารถดาวน์โหลด Miniconda ได้จากที่นี่และติดตั้งเป็นคำแนะนำ
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.shการตั้งค่าแหล่งที่มาของกระจก
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 yesสร้างสภาพแวดล้อมเสมือนจริง Chatx ด้วย Python 3.11 (> = 3.9)
conda create -n chatx_py311 python==3.11 -yเปิดใช้งานสภาพแวดล้อมเสมือนจริง
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 เปิดให้บริการด้วยใบอนุญาต MIT