Files
RAG/.env.example
YoVinchen ecdb10c37a
Some checks failed
verify / verify (push) Has been cancelled
Make the governed RAG evidence path executable end to end
Separate local parsing from model indexing, bind review decisions to immutable manifests, persist vectors behind active profiles, and expose retrieval, chat, evaluation, and document workflows through the React workbench.

Constraint: Live Bailian authentication currently fails for all three configured capabilities

Rejected: Direct upload-to-embedding flow | bypasses local review and manifest binding

Confidence: high

Scope-risk: broad

Directive: Keep private-data deployment blocked until authentication, RBAC, and separate database roles land

Tested: make verify; fresh and replay Docker document smoke; worker recovery smoke; frozen synthetic evaluation; migration 0003-0004 roundtrip

Not-tested: Successful live Bailian calls, OCR, real multi-user authorization
2026-07-13 05:58:11 +08:00

48 lines
1.5 KiB
Plaintext

# This file contains placeholders only. Never put a real API key here.
APP_ENV=development
APP_NAME=geological-rag
APP_SECRET_KEY_FILE=/run/secrets/app_secret_key
POSTGRES_DB=geological_rag
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_BOOTSTRAP_USER=postgres
POSTGRES_MIGRATOR_USER=geological_rag_migrator
POSTGRES_APP_USER=geological_rag_app
POSTGRES_BOOTSTRAP_PASSWORD_FILE=/run/secrets/postgres_bootstrap_password
POSTGRES_MIGRATOR_PASSWORD_FILE=/run/secrets/postgres_migrator_password
POSTGRES_APP_PASSWORD_FILE=/run/secrets/postgres_app_password
UPLOAD_ROOT=/data/uploads
MAX_UPLOAD_MB=100
DOCUMENT_NAMESPACE_MODE=fake
MODEL_GATEWAY_BASE_URL=http://model-gateway:8000
MODEL_GATEWAY_TOKEN_FILE=/run/secrets/model_gateway_api_token
MODEL_GATEWAY_CALLER=api
MODEL_GATEWAY_TIMEOUT_SECONDS=120
# The actual workspace host is local deployment configuration and is not committed.
BAILIAN_OPENAI_BASE_URL=https://<workspace-id>.cn-beijing.maas.aliyuncs.com/compatible-mode/v1
BAILIAN_NATIVE_BASE_URL=https://<workspace-id>.cn-beijing.maas.aliyuncs.com/api/v1
BAILIAN_RERANK_BASE_URL=https://<workspace-id>.cn-beijing.maas.aliyuncs.com/compatible-api/v1
DASHSCOPE_API_KEY_FILE=/run/secrets/bailian_api_key
EMBEDDING_MODEL=text-embedding-v4
EMBEDDING_DIMENSION=1024
RERANK_MODEL=qwen3-rerank
LLM_MODEL=deepseek-v4-flash
CHUNK_TARGET_TOKENS=512
CHUNK_MAX_TOKENS=800
CHUNK_OVERLAP_TOKENS=64
VECTOR_TOP_K=50
RERANK_TOP_N=10
CONTEXT_TOP_N=8
MAX_CONTEXT_TOKENS=10000
MODEL_TIMEOUT_SECONDS=90
MODEL_MAX_RETRIES=3
MODEL_MAX_CONCURRENCY=4
WORKER_CAPABILITIES=document_parse