🎬 Guide VideoRAG - Installation et Configuration
VideoRAG: Chat with Your Videos - Système d'analyse vidéo par IA avec interface web
Date d'installation: 20 Octobre 2025 Serveur: srv759970.hstgr.cloud (69.62.108.82) URL: https://videorag.srv759970.hstgr.cloud ✅ HTTPS ACTIVÉ
📋 Installation Complète
VideoRAG a été installé avec succès sur votre VPS avec tous les composants nécessaires.
✅ Ce qui a été installé:
- Python 3.11 via Miniconda (
/opt/miniconda/envs/vimo) - VideoRAG Backend API (Flask sur port 5000)
- Modèles IA (~8GB total):
- MiniCPM-V-2_6-int4 (4GB)
- Whisper large-v3 (1.5GB)
- ImageBind huge (2.4GB)
- Interface Web simple en
/opt/videorag-web - Service systemd
videorag.service - Configuration Nginx avec reverse proxy
- Certificat SSL Let's Encrypt (HTTPS configuré)
🚀 Démarrage Rapide
Étape 1: Configurer votre clé OpenAI
Étape 2: Démarrer le service
Étape 3: Accéder
- Interface Web: http://videorag.srv759970.hstgr.cloud
- API Directe: http://69.62.108.82:5000/health
📁 Emplacements
| Composant | Chemin |
|---|---|
| Repository principal | /opt/videorag/ |
| Backend API | /opt/videorag/Vimo-desktop/python_backend/ |
| Modèles | /opt/videorag/VideoRAG-algorithm/ |
| Frontend Web | /opt/videorag-web/ |
| Service | /etc/systemd/system/videorag.service |
| Config Nginx | /etc/nginx/sites-available/videorag |
| Documentation | /opt/videorag/README_INSTALL.md |
🔧 Gestion du Service
# Démarrer/Arrêter/Redémarrer
systemctl start videorag
systemctl stop videorag
systemctl restart videorag
# Status
systemctl status videorag
# Logs en temps réel
journalctl -u videorag -f
# Dernières 100 lignes de logs
journalctl -u videorag -n 100
📡 API Endpoints
Base URL
- Via Nginx:
http://videorag.srv759970.hstgr.cloud/api/ - Direct:
http://localhost:5000/
Endpoints
- GET /health - Vérifier si l'API fonctionne
- POST /upload - Upload une vidéo
- POST /query - Poser une question sur les vidéos
- GET /videos - Lister les vidéos uploadées
Exemples
# Health check
curl http://localhost:5000/health
# Upload
curl -X POST -F "video=@video.mp4" http://localhost:5000/upload
# Query
curl -X POST -H "Content-Type: application/json" \
-d '{"query":"What happens in the video?"}' \
http://localhost:5000/query
🔐 Sécurité
Changer la clé OpenAI
# Option 1: Script
/opt/videorag/set_openai_key.sh sk-proj-NOUVELLE_CLE
# Option 2: Manuel
nano /etc/systemd/system/videorag.service
systemctl daemon-reload
systemctl restart videorag
Limite d'upload (actuellement 5GB)
nano /etc/nginx/sites-available/videorag
# Modifier: client_max_body_size 5000M;
systemctl reload nginx
Ajouter HTTPS
🐛 Troubleshooting
Service ne démarre pas
API ne répond pas
Modèles introuvables
ls -lh /opt/videorag/VideoRAG-algorithm/MiniCPM-V-2_6-int4/
ls -lh /opt/videorag/VideoRAG-algorithm/faster-distil-whisper-large-v3/
ls -lh /opt/videorag/VideoRAG-algorithm/.checkpoints/
📚 Documentation
- Documentation complète:
/opt/videorag/README_INSTALL.md - GitHub VideoRAG: https://github.com/HKUDS/VideoRAG
- Paper: https://arxiv.org/abs/2502.01549
- Guides locaux:
docs/guides/
✅ Checklist
- Clé OpenAI configurée
- Service démarré
- Interface web accessible
- API répond (/health)
- Test upload vidéo
- Test query vidéo
- HTTPS configuré (optionnel)
- Basic Auth ajouté (optionnel)
Installation: 20 Octobre 2025 Par: Claude Code