Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
67 lines (50 loc) · 1.78 KB
/
Copy path.env.example
File metadata and controls
67 lines (50 loc) · 1.78 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
58
59
60
61
62
63
64
65
66
67
AZURE_SEARCH_ENDPOINT=
AZURE_SEARCH_API_KEY=
AZURE_SEARCH_INDEX=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOYMENT=
AZURE_OPENAI_MODEL=
AZURE_OPENAI_API_VERSION=
AZURE_OPENAI_EMBEDDING_MODEL=
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=
AZURE_OPENAI_EMBEDDING_ENDPOINT=
AZURE_OPENAI_EMBEDDING_API_KEY=
# ---------- Database (SQLite) ----------
# DB file lives on the host at ./db/rag.db, bind-mounted into the container
# at /srv/db. Entrypoint runs `alembic upgrade head` on boot.
DATABASE_URL=
# ---------- Local file storage ----------
# Inside the container the compose bind mount puts ./storage at /srv/storage.
STORAGE_DIR=
MAX_UPLOAD_MB=
# ---------- Pipeline tuning ----------
EMBED_BATCH_SIZE=
CHUNK_TOKENS=
CHUNK_OVERLAP=
SEARCH_TOP_K_CHUNKS=
SEARCH_TOP_K_DOCS=
CHAT_MAX_CONTEXT_CHUNKS=
INGEST_CONCURRENCY=
EMBED_MAX_INFLIGHT_BATCHES=
SEARCH_MAX_INFLIGHT_UPLOADS=
# ---------- OCR (scanned PDF pages, Tesseract) ----------
# OCR_WORKERS = process pool size. Leave at least 2 cores free for the rest
# of the pipeline (chunker, FastAPI, asyncio). On an 8-core host, 6 is the
# sweet spot. Set OCR_ENABLED=false to disable entirely (scanned pages then
# fall through as today, i.e. fail with "empty extraction").
OCR_ENABLED=
OCR_DPI=
OCR_WORKERS= ## optional
OCR_MIN_CHARS_FOR_TEXT= ##optional
OCR_MIN_IMAGE_AREA_RATIO= ##optional
OCR_LANGUAGES= #optional
# ---------- Feature flags ----------
# Semantic reranking requires Azure AI Search Standard S1+. Set false on
# Free/Basic or the index creation call will fail.
ENABLE_SEMANTIC_RANKING=
# Create-or-update the index on every startup. Set false if you manage the
# schema manually (e.g. created it from index.json via REST PUT).
ENSURE_INDEX_ON_STARTUP=
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT=
AZURE_DOCUMENT_INTELLIGENCE_API_KEY=