Files
PlantAI-rag-new/sdk/.env.example
T
jerryandClaude Fable 5 0875bb036c P0/M1: 四部分重构——frontend→ui、backend→sdk 改名 + 引用修复 + 骨架
- git mv 保留历史:ui/(Vue3+Vite)、sdk/(BFF 中间层)
- 路径语义修正:db_path/figures_cache 改相对 sdk/(BFF cwd),
  历史库 sdk/backend/data 迁移至 sdk/data/(会话/图片缓存无损)
- 引用修复 ~15 处:config.py、deploy/*.sh、vitest/playwright 配置、
  单测导入路径、docs、README、gitignore、.env.example
- 骨架:agent/{qa,methodology,legacy-rag,vendor}、knowledge/manifest.yaml、
  tooling/{compile,kb,crypto,assemble,audit,tools,scripts} + README
- 门禁验证:sdk pytest 125 通过、ui vitest 158 通过、
  生产 BFF 脚本重启四上游全绿 + 静态托管 + 会话库无损

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 12:56:47 +08:00

33 lines
1.0 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# sdk/.env.example —— BFF 全部配置键(pydantic-settings,键名大小写不敏感)
# 复制为 .env 后按需修改。以下默认值即 config.py 的默认值,本地开发可不改。
# ---- 应用 ----
# APP_NAME=plantai-rag-new-bff
# VERSION=0.1.0
# ---- 上游地址(只读消费)----
QA_BASE_URL=http://127.0.0.1:7920
QA_API_PATH=/api/v1/qa-v1-1-73
RAG_BASE_URL=http://127.0.0.1:8000
RAG_ALT_BASE_URL=http://127.0.0.1:7900
# ---- Neo4j 候选(顺序即回退顺序:18788 首选 → 19788 → 17687;凭据见 DISCOVERY.md §2)
# 注意:凭据只进 BFF 配置,绝不下发到浏览器。
NEO4J_BOLT_URIS=bolt://127.0.0.1:18788,bolt://127.0.0.1:19788,bolt://127.0.0.1:17687
NEO4J_USER=neo4j
NEO4J_PASSWORDS=<in sdk/.env, 不入 git>
# ---- 超时阶梯(秒)----
TIMEOUT_HEALTH=1
TIMEOUT_QA_CHAT=300
TIMEOUT_QA_SEARCH=180
TIMEOUT_UPLOAD=600
TIMEOUT_EXTRACTION=15
# ---- 本地 ----
DB_PATH=data/plantai.db
HEALTH_CACHE_TTL=5
# ---- 生产形态:BFF 静态托管 ui/dist(M6 启用)----
FRONTEND_DIST_DIR=ui/dist