Initial commit
This commit is contained in:
21
archive/old_scripts/rebuild_index.sh
Executable file
21
archive/old_scripts/rebuild_index.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# Script wrapper pour reconstruire l'index FAISS avec le bon Python
|
||||
|
||||
echo "🔨 Reconstruction de l'index FAISS..."
|
||||
echo ""
|
||||
|
||||
# Vérifier que le venv existe
|
||||
if [ ! -d "geniusia2/venv" ]; then
|
||||
echo "❌ Environnement virtuel non trouvé"
|
||||
echo " Exécutez d'abord: cd geniusia2 && ./setup.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Utiliser le Python du venv
|
||||
geniusia2/venv/bin/python rebuild_faiss_simple.py
|
||||
|
||||
echo ""
|
||||
echo "✅ Terminé !"
|
||||
echo ""
|
||||
echo "Vérification:"
|
||||
ls -lh geniusia2/data/faiss_index/
|
||||
Reference in New Issue
Block a user