chatx
v1.0.0
chatbot منظمة العفو الدولية التي يمكن تعلمها باستمرار وتلتزم بالسماح للجميع بالاستفادة من الذكاء الاصطناعي.

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 الجدد.
بشكل عام ، يمكن للبيئة الافتراضية حل مشكلات مثل تعارضات الحزم والبيثون متعددة النسخ. كوندا هو خيار لإدارة الحزم والبيئات. على 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 مفتوح من مصادر مع رخصة معهد ماساتشوستس للتكنولوجيا.