fix(librechat): use python3-venv+pip instead of uv for RAG API to handle numpy dependency conflict
This commit is contained in:
@@ -75,7 +75,7 @@ function update_script() {
|
||||
|
||||
msg_info "Updating RAG API Dependencies"
|
||||
cd /opt/rag-api
|
||||
$STD uv pip install --python .venv/bin/python -r requirements.lite.txt
|
||||
$STD .venv/bin/pip install -r requirements.lite.txt
|
||||
msg_ok "Updated RAG API Dependencies"
|
||||
|
||||
msg_info "Restoring RAG API Configuration"
|
||||
|
||||
@@ -18,7 +18,10 @@ setup_meilisearch
|
||||
PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql
|
||||
PG_DB_NAME="ragapi" PG_DB_USER="ragapi" PG_DB_EXTENSIONS="vector" setup_postgresql_db
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
UV_PYTHON="3.11" setup_uv
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y python3-venv
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
fetch_and_deploy_gh_tag "librechat" "danny-avila/LibreChat"
|
||||
fetch_and_deploy_gh_release "rag-api" "danny-avila/rag_api" "tarball"
|
||||
@@ -36,8 +39,9 @@ msg_ok "Built Frontend"
|
||||
|
||||
msg_info "Installing RAG API Dependencies"
|
||||
cd /opt/rag-api
|
||||
$STD uv venv .venv
|
||||
$STD uv pip install --python .venv/bin/python -r requirements.lite.txt
|
||||
$STD python3 -m venv .venv
|
||||
$STD .venv/bin/pip install --upgrade pip
|
||||
$STD .venv/bin/pip install -r requirements.lite.txt
|
||||
mkdir -p /opt/rag-api/uploads
|
||||
msg_ok "Installed RAG API Dependencies"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user