File size: 894 Bytes
ae6bba9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d6a03f
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
from pathlib import Path

# Privacy / PHI
PHI_SAFE_MODE: bool = True            # redact before indexing/logging
PERSIST_CONTENT: bool = False         # never store message/upload contents to disk

# Uploads
MAX_UPLOAD_MB: int = 15
ALLOWED_EXT = {".pdf", ".docx", ".txt", ".md", ".csv", ".png", ".jpg", ".jpeg", ".webp"}
ALLOWED_MIME = {
    "application/pdf",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "text/plain", "text/markdown", "text/csv",
    "image/png", "image/jpeg", "image/webp",
}

# Optional AV (clamd). If True and clamd is reachable, files will be scanned before parsing.
ENABLE_AV_SCAN: bool = True
CLAMD_UNIX_SOCKET: str | None = None        # e.g., "/var/run/clamav/clamd.ctl"
CLAMD_NETWORK: tuple[str, int] | None = None  # e.g., ("localhost", 3310)

# Paths
SNAPSHOT_PATH = "snapshots/current.json"
RAG_STORE_DIR = Path("rag_store")