-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
50 lines (42 loc) · 2.71 KB
/
Copy path.env.example
File metadata and controls
50 lines (42 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Used only for local `docker compose up -d` workflow. Portainer users set
# these in the Stacks GUI instead — no .env file needed.
# ─── Required ─────────────────────────────────────────────────────────────────
POSTGRES_PASSWORD=changeme_strong_password
# ─── Optional: auto-generated + persisted if left blank ───────────────────────
# On first boot the app writes these to /app/data/.secrets.env inside the data
# volume and reads them back on every restart. Override here only if you need
# to pin specific values across a fresh data volume.
JWT_SECRET=
ENCRYPTION_KEY=
# ─── LLM Provider ─────────────────────────────────────────────────────────────
# Options: ollama | openai | anthropic | generic
LLM_PROVIDER=ollama
# Leave blank — pick and pull a model from /admin/llm-settings
LLM_MODEL=
# Ollama runs in the stack; its URL is fixed to http://ollama:11434 in
# docker-compose.yml and is not configurable here. To use a remote Ollama or
# OpenAI-compatible endpoint, set the Base URL per-provider in /admin/llm-settings.
LLM_TEMPERATURE=0.3
LLM_TOP_P=0.9
LLM_MAX_TOKENS=2048
# Only needed when using a cloud provider; otherwise leave blank
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
# ─── Embeddings ───────────────────────────────────────────────────────────────
EMBED_MODEL=BAAI/bge-large-en-v1.5
# cpu | cuda | rocm
EMBED_DEVICE=cpu
# ─── Retrieval Tuning ─────────────────────────────────────────────────────────
CHUNK_SIZE=600
CHUNK_OVERLAP=100
TOP_K=8
RERANK_TOP_K=5
# ─── App ──────────────────────────────────────────────────────────────────────
# Host port to publish the web UI on
RAG_PORT=8000
DEBUG=false
# ─── Data Storage ─────────────────────────────────────────────────────────────
# Root directory on the host where postgres/qdrant/redis/uploads/ollama live.
# Create these subdirectories before the first deploy:
# sudo mkdir -p "$DATA_ROOT"/{postgres,qdrant,redis,uploads,ollama}
DATA_ROOT=/storage/rag