SakibAhmed commited on
Commit
c97c61d
Β·
1 Parent(s): fa4128d

Update .env

Browse files
Files changed (1) hide show
  1. .env +116 -116
.env CHANGED
@@ -1,117 +1,117 @@
1
- # ============================================================
2
- # RAG System β€” Environment Configuration
3
- # ============================================================
4
-
5
- # --- API Credentials (for /webhook/search β€” used by n8n) ---
6
- API_USERNAME=admin
7
- API_PASSWORD=12345
8
-
9
- # --- Admin Dashboard Credentials (fallback if users.csv missing) ---
10
- FLASK_ADMIN_USERNAME=admin
11
- FLASK_ADMIN_PASSWORD=1234
12
-
13
- # ============================================================
14
- # RAG β€” Storage & Sources
15
- # ============================================================
16
-
17
- # Absolute or relative path to the folder containing source documents
18
- SOURCES_DIR=sources
19
-
20
- # Absolute or relative path where the FAISS index will be stored
21
- RAG_STORAGE_DIR=faiss_storage
22
-
23
- # ============================================================
24
- # RAG β€” Embedding Model
25
- # ============================================================
26
-
27
- RAG_EMBEDDING_MODEL=BAAI/bge-small-en
28
-
29
- # Set to True to use CUDA GPU for embeddings (requires CUDA)
30
- RAG_EMBEDDING_GPU=False
31
-
32
- # Load existing FAISS index from disk on startup (True/False)
33
- RAG_LOAD_INDEX=True
34
-
35
- # ============================================================
36
- # RAG β€” Chunking
37
- # ============================================================
38
-
39
- RAG_CHUNK_SIZE=2000
40
- RAG_CHUNK_OVERLAP=150
41
-
42
- # ============================================================
43
- # RAG β€” Retrieval
44
- # ============================================================
45
-
46
- # How many docs to fetch from FAISS before reranking
47
- RAG_INITIAL_FETCH_K=20
48
-
49
- # How many docs to return after reranking (final result count)
50
- RAG_RERANKER_K=5
51
-
52
- # Max files to process in a single incremental index update
53
- RAG_MAX_FILES_FOR_INCREMENTAL=50
54
-
55
- # ============================================================
56
- # CSV Specific Parameters
57
- # ============================================================
58
-
59
- # Maximum number of results to return from CSV sources
60
- RAG_CSV_MAX_RESULTS=50
61
-
62
- # Threshold for CSV match confidence
63
- # (If reranker is enabled, higher is better e.g., 0.0 to 1.0)
64
- # (If reranker is disabled/FAISS L2, lower is better e.g., < 1.0)
65
- RAG_CSV_CONFIDENCE_THRESHOLD=0.1
66
-
67
- # ============================================================
68
- # RAG β€” Reranker Model
69
- # ============================================================
70
-
71
- RAG_RERANKER_MODEL=jinaai/jina-reranker-v2-base-multilingual
72
-
73
- # Set to False to disable reranking entirely
74
- RAG_RERANKER_ENABLED=False
75
-
76
- # ============================================================
77
- # URL Source (General URL / Rentry)
78
- # ============================================================
79
-
80
- # Toggle fetching from external URL completely on/off
81
- URL_FETCH_ENABLED=False
82
-
83
- # General URL to scrape (replacing RENTRY_URL)
84
- EXTERNAL_URL="https://rentry.co/ada"
85
-
86
- # How often (in minutes) to auto-refresh from the URL (0 = disabled)
87
- URL_UPDATE_PERIOD_MINUTES=60
88
-
89
- # ============================================================
90
- # Google Drive β€” Source Documents Folder
91
- # ============================================================
92
-
93
- # Set to True to download source docs from a GDrive folder on startup
94
- GDRIVE_SOURCES_ENABLED=False
95
- GDRIVE_FOLDER_URL=
96
-
97
- # ============================================================
98
- # Google Drive β€” Pre-built FAISS Index (ZIP)
99
- # ============================================================
100
-
101
- # Set to True to download a pre-built FAISS index ZIP from GDrive on startup
102
- GDRIVE_INDEX_ENABLED=False
103
- GDRIVE_INDEX_URL=
104
-
105
- # ============================================================
106
- # Google Drive β€” Users CSV
107
- # ============================================================
108
-
109
- # Set to True to download users.csv from GDrive on startup
110
- GDRIVE_USERS_CSV_ENABLED=False
111
- GDRIVE_USERS_CSV_URL=
112
-
113
- # ============================================================
114
- # Logging
115
- # ============================================================
116
-
117
  RAG_DETAILED_LOGGING=True
 
1
+ # ============================================================
2
+ # RAG System β€” Environment Configuration
3
+ # ============================================================
4
+
5
+ # --- API Credentials (for /webhook/search β€” used by n8n) ---
6
+ # API_USERNAME=
7
+ # API_PASSWORD=
8
+
9
+ # --- Admin Dashboard Credentials (fallback if users.csv missing) ---
10
+ FLASK_ADMIN_USERNAME=admin
11
+ FLASK_ADMIN_PASSWORD=1234
12
+
13
+ # ============================================================
14
+ # RAG β€” Storage & Sources
15
+ # ============================================================
16
+
17
+ # Absolute or relative path to the folder containing source documents
18
+ SOURCES_DIR=sources
19
+
20
+ # Absolute or relative path where the FAISS index will be stored
21
+ RAG_STORAGE_DIR=faiss_storage
22
+
23
+ # ============================================================
24
+ # RAG β€” Embedding Model
25
+ # ============================================================
26
+
27
+ RAG_EMBEDDING_MODEL=BAAI/bge-small-en
28
+
29
+ # Set to True to use CUDA GPU for embeddings (requires CUDA)
30
+ RAG_EMBEDDING_GPU=False
31
+
32
+ # Load existing FAISS index from disk on startup (True/False)
33
+ RAG_LOAD_INDEX=True
34
+
35
+ # ============================================================
36
+ # RAG β€” Chunking
37
+ # ============================================================
38
+
39
+ RAG_CHUNK_SIZE=2000
40
+ RAG_CHUNK_OVERLAP=150
41
+
42
+ # ============================================================
43
+ # RAG β€” Retrieval
44
+ # ============================================================
45
+
46
+ # How many docs to fetch from FAISS before reranking
47
+ RAG_INITIAL_FETCH_K=20
48
+
49
+ # How many docs to return after reranking (final result count)
50
+ RAG_RERANKER_K=5
51
+
52
+ # Max files to process in a single incremental index update
53
+ RAG_MAX_FILES_FOR_INCREMENTAL=50
54
+
55
+ # ============================================================
56
+ # CSV Specific Parameters
57
+ # ============================================================
58
+
59
+ # Maximum number of results to return from CSV sources
60
+ RAG_CSV_MAX_RESULTS=50
61
+
62
+ # Threshold for CSV match confidence
63
+ # (If reranker is enabled, higher is better e.g., 0.0 to 1.0)
64
+ # (If reranker is disabled/FAISS L2, lower is better e.g., < 1.0)
65
+ RAG_CSV_CONFIDENCE_THRESHOLD=0.1
66
+
67
+ # ============================================================
68
+ # RAG β€” Reranker Model
69
+ # ============================================================
70
+
71
+ RAG_RERANKER_MODEL=jinaai/jina-reranker-v2-base-multilingual
72
+
73
+ # Set to False to disable reranking entirely
74
+ RAG_RERANKER_ENABLED=False
75
+
76
+ # ============================================================
77
+ # URL Source (General URL / Rentry)
78
+ # ============================================================
79
+
80
+ # Toggle fetching from external URL completely on/off
81
+ URL_FETCH_ENABLED=False
82
+
83
+ # General URL to scrape (replacing RENTRY_URL)
84
+ EXTERNAL_URL="https://rentry.co/ada"
85
+
86
+ # How often (in minutes) to auto-refresh from the URL (0 = disabled)
87
+ URL_UPDATE_PERIOD_MINUTES=60
88
+
89
+ # ============================================================
90
+ # Google Drive β€” Source Documents Folder
91
+ # ============================================================
92
+
93
+ # Set to True to download source docs from a GDrive folder on startup
94
+ GDRIVE_SOURCES_ENABLED=False
95
+ GDRIVE_FOLDER_URL=
96
+
97
+ # ============================================================
98
+ # Google Drive β€” Pre-built FAISS Index (ZIP)
99
+ # ============================================================
100
+
101
+ # Set to True to download a pre-built FAISS index ZIP from GDrive on startup
102
+ GDRIVE_INDEX_ENABLED=False
103
+ GDRIVE_INDEX_URL=
104
+
105
+ # ============================================================
106
+ # Google Drive β€” Users CSV
107
+ # ============================================================
108
+
109
+ # Set to True to download users.csv from GDrive on startup
110
+ GDRIVE_USERS_CSV_ENABLED=False
111
+ GDRIVE_USERS_CSV_URL=
112
+
113
+ # ============================================================
114
+ # Logging
115
+ # ============================================================
116
+
117
  RAG_DETAILED_LOGGING=True