@echo off :: Debug and setup script for RagFlow Preprocess echo =================================================== echo RagFlow Preprocess Setup and Debug echo =================================================== echo. echo Installing Python dependencies... pip install requests PyQt6 PyPDF2 pytesseract Pillow PyMuPDF echo. echo Checking Tesseract OCR installation... :: Check if Tesseract is installed where tesseract >nul 2>nul if %ERRORLEVEL% neq 0 ( echo WARNING: Tesseract is not installed or not in PATH. echo Please download and install Tesseract OCR from: echo https://github.com/UB-Mannheim/tesseract/wiki echo. echo IMPORTANT: During installation, check the option to add Tesseract to PATH. echo And make sure to install French and English languages. echo. echo Press any key to continue... pause >nul ) echo Testing communication with Ollama server... python test_components.py echo. echo Updating configurations... echo Ollama Server: http://217.182.105.173:11434 echo. echo =================================================== echo FINAL INSTRUCTIONS echo =================================================== echo. echo 1. If Tesseract OCR is not installed yet: echo - Download it from: https://github.com/UB-Mannheim/tesseract/wiki echo - Install it with the "Add to PATH" option checked echo - Make sure to install French (fra) and English (eng) languages echo. echo 2. To install French languages for Tesseract: echo - Launch PowerShell as administrator echo - Run the script: .\install_languages.ps1 echo. echo 3. To run the application: echo - Use: python main.py echo. echo Press any key to exit... pause >nul