Rajan Sharma commited on
Commit
ae6bba9
·
verified ·
1 Parent(s): 5c057ea

Create settings.py

Browse files
Files changed (1) hide show
  1. settings.py +24 -0
settings.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+
3
+ # Privacy / PHI
4
+ PHI_SAFE_MODE: bool = True # redact before indexing/logging
5
+ PERSIST_CONTENT: bool = False # never store message/upload contents to disk
6
+
7
+ # Uploads
8
+ MAX_UPLOAD_MB: int = 15
9
+ ALLOWED_EXT = {".pdf", ".docx", ".txt", ".md", ".csv", ".png", ".jpg", ".jpeg", ".webp"}
10
+ ALLOWED_MIME = {
11
+ "application/pdf",
12
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
13
+ "text/plain", "text/markdown", "text/csv",
14
+ "image/png", "image/jpeg", "image/webp",
15
+ }
16
+
17
+ # Optional AV (clamd). If True and clamd is reachable, files will be scanned before parsing.
18
+ ENABLE_AV_SCAN: bool = True
19
+ CLAMD_UNIX_SOCKET: str | None = None # e.g., "/var/run/clamav/clamd.ctl"
20
+ CLAMD_NETWORK: tuple[str, int] | None = None # e.g., ("localhost", 3310)
21
+
22
+ # Paths
23
+ SNAPSHOT_PATH = "snapshots/current.json"
24
+ RAG_STORE_DIR = Path("rag_store").