Files
PlantAI-rag-new/backend/.env.example
T
jerryandClaude Fable 5 1e94de7464 PlantAI-rag-new 首次提交:文献知识工作台
- BFF 薄适配层(FastAPI,8090):QA 代理/SSE 中继/Neo4j 直连/抽取代理/会话持久化
- Vue3 前端:五相位检索流水线、文献来源与证据链、知识图谱、提取任务四 tab
- 四档响应式(桌面/笔记本/平板/手机)、深浅主题
- 81 个 FR 全部实现,测试追溯矩阵 81/81,后端 121 测/前端 156 测
- 真实凭据已脱敏,运行时配置在 backend/.env(不入 git)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-25 20:47:52 +08:00

33 lines
1.1 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.
# backend/.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 backend/.env, 不入 git>
# ---- 超时阶梯(秒)----
TIMEOUT_HEALTH=1
TIMEOUT_QA_CHAT=300
TIMEOUT_QA_SEARCH=180
TIMEOUT_UPLOAD=600
TIMEOUT_EXTRACTION=15
# ---- 本地 ----
DB_PATH=backend/data/plantai.db
HEALTH_CACHE_TTL=5
# ---- 生产形态:BFF 静态托管 frontend/dist(M6 启用)----
FRONTEND_DIST_DIR=frontend/dist