-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
66 lines (56 loc) · 1.6 KB
/
setup.bat
File metadata and controls
66 lines (56 loc) · 1.6 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
@echo off
REM ServiceNow Documentation Vectorizer - Setup Script for Windows
echo ==========================================
echo ServiceNow Documentation Vectorizer Setup
echo ==========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python is not installed or not in PATH
echo Please install Python 3.8 or higher from https://www.python.org
pause
exit /b 1
)
echo Python detected
echo.
REM Create virtual environment
echo Creating virtual environment...
if not exist "venv" (
python -m venv venv
echo Virtual environment created
) else (
echo Virtual environment already exists
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip --quiet
REM Install dependencies
echo Installing dependencies...
pip install -r requirements.txt
echo.
echo Dependencies installed
echo.
REM Run environment setup
echo Setting up environment configuration...
if not exist ".env" (
python setup_env.py
) else (
echo .env file already exists. Run 'python setup_env.py' to reconfigure.
)
echo.
echo ==========================================
echo Setup Complete!
echo ==========================================
echo.
echo Next steps:
echo 1. Activate virtual environment: venv\Scripts\activate
echo 2. Verify setup: python test_setup.py
echo 3. Index documentation: python index_docs.py
echo 4. Test queries: python query_docs.py --interactive
echo 5. Start MCP server: python mcp_server.py
echo.
pause