-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_system.sh
More file actions
34 lines (27 loc) · 817 Bytes
/
start_system.sh
File metadata and controls
34 lines (27 loc) · 817 Bytes
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
#!/bin/bash
#===============================================
# RAG System Launcher for Linux/Mac
#===============================================
echo "========================================"
echo " RAG System Launcher"
echo "========================================"
echo ""
# Get script directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Check dependencies
echo "Checking dependencies..."
pip install -q -r requirements.txt
# Run the cross-platform main script
echo ""
echo "Starting RAG System..."
python main.py "$@"
deactivate