diff --git a/modules/rag_manager.py b/modules/rag_manager.py index ba25e29..c49e94a 100644 --- a/modules/rag_manager.py +++ b/modules/rag_manager.py @@ -54,10 +54,11 @@ def extraire_contexte_rag(thematique): def rechercher_contexte_rag(prompt, categorie="general"): """ - Bouchon temporaire : empêche le plantage en attendant la vectorisation sémantique avancée. + Récupère le contenu des fichiers de la thématique pour alimenter l'IA. """ try: - return "" + # On fait appel à la fonction qui lit tous les .md/.txt du dossier thématique + return extraire_contexte_rag(categorie) except Exception as e: log_event("ERROR", "RAG_MANAGER", f"Erreur lors de la recherche RAG : {e}") return ""