-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
57 lines (48 loc) · 2.04 KB
/
Copy path.env.example
File metadata and controls
57 lines (48 loc) · 2.04 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
51
52
53
54
55
56
57
# Copy to .env and fill in. Never commit .env.
ENVIRONMENT=local
LOG_LEVEL=INFO
# --- Database ---------------------------------------------------------------
# Local (docker compose):
DATABASE_URL=postgresql+asyncpg://documind:documind@localhost:5432/documind
# Host port for the compose Postgres. Change if you already run Postgres on 5432,
# and update DATABASE_URL to match.
POSTGRES_PORT=5432
# Neon / Supabase / Render: paste the connection string exactly as the console
# gives it to you. The driver is corrected and libpq-only parameters
# (sslmode, channel_binding) are translated automatically — see
# Settings._normalise_database_url. Use the POOLED host on serverless.
# DATABASE_URL=postgresql://user:pass@ep-xxx-pooler.region.aws.neon.tech/db?sslmode=require
# --- OpenAI -----------------------------------------------------------------
OPENAI_API_KEY=sk-...
GENERATION_MODEL=gpt-4.1-mini
JUDGE_MODEL=gpt-4.1
REWRITE_MODEL=gpt-4.1-nano
RERANK_MODEL=gpt-4.1-mini
VISION_MODEL=gpt-4.1-mini
EMBEDDING_MODEL=text-embedding-3-small
EMBEDDING_DIM=1536
# --- Active retrieval config (A|B|C|D|E, see app/evals/configs.py) -----------
ACTIVE_CONFIG=D
# --- Ingestion --------------------------------------------------------------
EMBED_BATCH_SIZE=96
MAX_UPLOAD_MB=25
VISION_FALLBACK_ENABLED=true
MAX_VISION_PAGES_PER_DOC=12
INGEST_TICK_BUDGET_SECONDS=40
# --- Vector store (optional Qdrant) -----------------------------------------
# QDRANT_URL=https://xxx.cloud.qdrant.io:6333
# QDRANT_API_KEY=
QDRANT_COLLECTION=documind
# --- HNSW -------------------------------------------------------------------
HNSW_M=16
HNSW_EF_CONSTRUCTION=64
HNSW_EF_SEARCH=80
# --- Observability (optional; tracing no-ops without these) -----------------
# LANGFUSE_PUBLIC_KEY=pk-lf-...
# LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://cloud.langfuse.com
# --- App --------------------------------------------------------------------
CORS_ORIGINS=http://localhost:3000
RATE_LIMIT_PER_MINUTE=30
# Optional shared secret required on write endpoints (leave unset to disable)
# API_KEY=