File size: 969 Bytes
6dc9d46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# RagBot API - Simple Startup Script
# Run from RagBot root directory

Write-Host "🚀 Starting RagBot API Server..." -ForegroundColor Cyan
Write-Host ""

# Check if we're in the right directory
if (!(Test-Path "api\app\main.py")) {
    Write-Host "❌ Error: Run this from RagBot root directory!" -ForegroundColor Red
    exit 1
}

# Check vector store
if (!(Test-Path "data\vector_stores\medical_knowledge.faiss")) {
    Write-Host "❌ Vector store not found!" -ForegroundColor Red
    Write-Host "   Run: python src/pdf_processor.py" -ForegroundColor Yellow
    exit 1
}

Write-Host "✓ Vector store found" -ForegroundColor Green
Write-Host ""
Write-Host "Starting server on http://localhost:8000" -ForegroundColor Green
Write-Host "Docs: http://localhost:8000/docs" -ForegroundColor Cyan
Write-Host ""
Write-Host "Press Ctrl+C to stop" -ForegroundColor Gray
Write-Host ""

# Start server
cd api
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload