-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJournal_System.bat
More file actions
163 lines (148 loc) · 3.13 KB
/
Journal_System.bat
File metadata and controls
163 lines (148 loc) · 3.13 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
@echo off
REM Reflecting Pool - Main Menu
REM Central launcher for all journal processing tools
REM Anchor to this file's directory so all relative paths work
cd /d "%~dp0"
:MENU
cls
echo ========================================
echo REFLECTING POOL
echo ========================================
echo.
echo Select an option:
echo.
echo App:
echo 1. Launch Reflecting Pool (recommended)
echo.
echo OCR (Digitize Photos):
echo 2. Process folder of photos
echo 3. Process single photo
echo 4. Start auto-watcher
echo.
echo RAG (Search Engine):
echo 5. Ingest journals to database
echo 6. Search journals (command line)
echo 7. Manage database (list/delete entries)
echo.
echo Legacy (standalone views):
echo 8. Launch analytics dashboard only
echo 9. Launch chat interface only
echo.
echo 0. Exit
echo.
echo ========================================
echo.
set /p CHOICE="Enter your choice (0-9): "
if "%CHOICE%"=="0" goto END
if "%CHOICE%"=="1" goto APP
if "%CHOICE%"=="2" goto OCR_FOLDER
if "%CHOICE%"=="3" goto OCR_SINGLE
if "%CHOICE%"=="4" goto WATCHER
if "%CHOICE%"=="5" goto INGEST
if "%CHOICE%"=="6" goto SEARCH
if "%CHOICE%"=="7" goto MANAGE
if "%CHOICE%"=="8" goto DASHBOARD
if "%CHOICE%"=="9" goto CHAT
echo Invalid choice. Please try again.
pause
goto MENU
:APP
echo.
echo Launching Reflecting Pool...
start "" /min cmd /c "python -m streamlit run app.py"
echo.
echo App launched in new window!
echo You can keep it running and return to this menu.
echo.
timeout /t 2 >nul
goto MENU
:OCR_FOLDER
echo.
echo Starting OCR folder processing...
cd ocr
call Process_Photos.bat
cd ..
echo.
echo Press any key to return to main menu...
pause >nul
goto MENU
:OCR_SINGLE
echo.
echo Starting single photo processing...
cd ocr
call Process_Single_Photo.bat
cd ..
echo.
echo Press any key to return to main menu...
pause >nul
goto MENU
:WATCHER
echo.
echo Starting folder watcher...
echo.
echo Note: The watcher will run continuously until you press Ctrl+C
echo or close the window. You can return to the main menu after stopping it.
echo.
cd ocr
call Start_Watcher.bat
cd ..
echo.
echo Watcher stopped.
echo Press any key to return to main menu...
pause >nul
goto MENU
:INGEST
echo.
echo Starting RAG ingestion...
cd rag
call Ingest_Journals.bat
cd ..
echo.
echo Press any key to return to main menu...
pause >nul
goto MENU
:SEARCH
echo.
echo Starting RAG search...
cd rag
call Search_Journals.bat
cd ..
echo.
echo Press any key to return to main menu...
pause >nul
goto MENU
:MANAGE
echo.
echo Starting RAG database management...
cd rag
call Manage_Database.bat
cd ..
echo.
echo Press any key to return to main menu...
pause >nul
goto MENU
:DASHBOARD
echo.
echo Launching analytics dashboard...
start "" cmd /c "cd dashboard && Launch_Dashboard.bat"
echo.
echo Dashboard launched in new window!
echo You can keep it running and return to this menu.
echo.
timeout /t 2 >nul
goto MENU
:CHAT
echo.
echo Launching chat interface...
start "" cmd /c "cd dashboard && Launch_Chat.bat"
echo.
echo Chat interface launched in new window!
echo You can keep it running and return to this menu.
echo.
timeout /t 2 >nul
goto MENU
:END
echo.
echo Goodbye!
timeout /t 1 >nul
exit