Brett Fox cc99edde79 Add comprehensive Windows compatibility and enhanced LLM setup
- Add Windows installer (install_windows.bat) and launcher (rag.bat)
- Enhance both Linux and Windows installers with intelligent Qwen3 model detection and setup
- Fix installation script continuation issues and improve user guidance
- Update README with side-by-side Linux/Windows commands
- Auto-save model preferences to config.yaml for consistent experience

Makes FSS-Mini-RAG fully cross-platform with zero-friction Windows adoption 🚀
2025-08-15 10:52:44 +10:00

51 lines
1.2 KiB
Batchfile

@echo off
REM FSS-Mini-RAG Windows Launcher - Simple and Reliable
setlocal
set "SCRIPT_DIR=%~dp0"
set "SCRIPT_DIR=%SCRIPT_DIR:~0,-1%"
set "VENV_PYTHON=%SCRIPT_DIR%\.venv\Scripts\python.exe"
REM Check if virtual environment exists
if not exist "%VENV_PYTHON%" (
echo Virtual environment not found!
echo.
echo Run this first: install_windows.bat
echo.
pause
exit /b 1
)
REM Route commands
if "%1"=="" goto :interactive
if "%1"=="help" goto :help
if "%1"=="--help" goto :help
if "%1"=="-h" goto :help
REM Pass all arguments to Python script
"%VENV_PYTHON%" "%SCRIPT_DIR%\rag-mini.py" %*
goto :end
:interactive
echo Starting interactive interface...
"%VENV_PYTHON%" "%SCRIPT_DIR%\rag-tui.py"
goto :end
:help
echo FSS-Mini-RAG - Semantic Code Search
echo.
echo Usage:
echo rag.bat - Interactive interface
echo rag.bat index ^<folder^> - Index a project
echo rag.bat search ^<folder^> ^<query^> - Search project
echo rag.bat status ^<folder^> - Check status
echo.
echo Examples:
echo rag.bat index C:\myproject
echo rag.bat search C:\myproject "authentication"
echo rag.bat search . "error handling"
echo.
pause
:end
endlocal