Some checks failed
verify / verify (push) Has been cancelled
The API and ingestion tools now use a fixed internal model gateway while governed profiles, embedding cache assignments, traceable citations, and stable API errors establish the boundaries required by later workflows. Constraint: The current Alibaba Cloud workspace rejects all three live model calls with authentication failures Rejected: Give the API or seed tools the Bailian key and direct egress | combines database access, cloud credentials, and public network access Rejected: Mix offline and Bailian vectors in one demo namespace | makes profile activation and retrieval ambiguous Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep Bailian credentials and egress exclusive to model-gateway and create a new immutable profile hash for any embedding identity change Tested: make verify; 121 backend tests; 14 frontend tests; fresh and populated Alembic upgrade-downgrade-upgrade; two idempotent offline seeds; Docker health and HTTP retrieval; isolated provider smoke Not-tested: Successful live Bailian responses because the supplied workspace credential currently fails authentication
47 lines
1.5 KiB
Plaintext
47 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
|
|
|
|
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,embedding,rerank,evaluation
|