- U0:新建 plantai-rag-new-venv(3.12.13,130 包),torch 2.13.0+cpu/cython 3.2.8/faiss 1.14.3/openai 3.3.1,requirements.lock 固化 - U1:四树全 venv 重编译(sdk 15/qa 45/methodology 28/legacy 283 .so 全 cp312),audit 双审计过 - U2:备用端口影子对照:金标 search evidence 30/30 与生产一致、SDK pytest 125 过、五上游绿 - U3:统一树切终态 8091/8092/8093 + BFF 8090(venv),停旧服务(容器/进程不删,30 天窗) - U4:minerupy311→minerupy312 断链修复、GF_PYTHON_ENV 回退统一、start-dev/run/bff_restart 去 conda、server.env/README 更新 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
58 lines
3.2 KiB
Bash
58 lines
3.2 KiB
Bash
# =============================================================================
|
|
# server.env — 服务端阶段脚本统一配置
|
|
# =============================================================================
|
|
|
|
# 工作区根目录。
|
|
TEST_ROOT=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test
|
|
SERVER_ROOT=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server
|
|
|
|
# 阶段 A/C 的源码输入。只需要在这里修改,脚本不再内置源码路径。
|
|
PLANTAI_SOURCE=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/rag-window
|
|
RAG_SOURCE=/home/xzq/5090/PlanAI-cooperate/RAG/rag-develop
|
|
QA_SOURCE=/home/xzq/5090/PlanAI-cooperate/RAG/rag-qa-v1_1_73
|
|
|
|
# 阶段 A 的新产物;阶段 C 默认只消费这两个目录。
|
|
PLANTAI_OUTPUT=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/PlantAI_compiled.new
|
|
RAG_OUTPUT=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/RAG.new
|
|
QA_OUTPUT=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/RAG_QA.new
|
|
PLANTAI_COMPILED=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/PlantAI_compiled.new
|
|
RAG_COMPILED=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/RAG.new
|
|
QA_COMPILED=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/RAG_QA.new
|
|
|
|
# QA 交付运行资产。阶段 C 将复制并加密这些目录,不会修改源数据卷。
|
|
QA_QDRANT_STORAGE_SOURCE=/home/xzq/home/wutx/gene-family-mas-v2/data/qdrant_qa_v1_1_73/storage
|
|
QA_NEO4J_DATA_SOURCE=/home/xzq/home/wutx/gene-family-mas-v2/data/neo4j_qa_v1_1_73/data
|
|
QA_RERANKER_MODEL_SOURCE=/home/xzq/5090/PlantAI-rag/bge-reranker-base
|
|
OLLAMA_MODELS_SOURCE=/home/xzq/5090/PlanAI-cooperate/RAG/runtime/ollama_models_qa_v1_1_73
|
|
QA_OLLAMA_GENERATION_MODEL=qwen2.5:14b-instruct
|
|
QA_OLLAMA_EMBED_MODEL=bge-m3:567m
|
|
QA_ENV_FILE=/home/xzq/5090/PlanAI-cooperate/RAG/runtime/qa_v1_1_73.env
|
|
|
|
# 客户授权信息(阶段 E)。
|
|
FINGERPRINT=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/plantai_server_package/server_fingers/test/device_fingerprint.json
|
|
CUSTOMER_ID=CUS-0001
|
|
CUSTOMER_NAME=测试客户
|
|
SERIAL_NO=PlantAI-RAG-0001
|
|
|
|
# 软件 TPM 只能用于测试;生产硬件授权不要启用。
|
|
export ALLOW_SOFTWARE_TPM_TEST=1
|
|
|
|
# 每次正式发新版时修改。
|
|
VERSION=1.0.0
|
|
|
|
# 服务端秘密目录,绝不随发行包外发。
|
|
SECRETS_DIR=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/plantai_server_package/secrets
|
|
|
|
# 构建发行包的输出目录(可选)。
|
|
# OUT_DIR=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/plantai_server_package/out/1.0.0
|
|
|
|
# 与目标部署环境 ABI 一致的 Python。
|
|
PLANTAI_PYTHON=/home/xzq/5090/teamWorkspace/zh/plantai-rag-new-venv/bin/python
|
|
QA_PYTHON=/home/xzq/5090/teamWorkspace/zh/plantai-rag-new-venv/bin/python
|
|
|
|
# 供应商私钥口令文件,权限应为 600。
|
|
SUPPLIER_KEY_PASSPHRASE_FILE=/home/xzq/5090/PlanAI-cooperate/hsj-workspace/encryption-test/server/plantai_server_package/secrets/private_key.pass
|
|
# 或改用保存口令的环境变量名称(与上一项二选一):
|
|
# SUPPLIER_KEY_PASSPHRASE_ENV=PLANTAI_SUPPLIER_KEY_PASSPHRASE
|
|
BBA_PFAM_DIR=/home/xzq/5090/PlantAI-dev4090-7/PlantAI-dev/data/hmm
|