From 66ce80fe51c605425128b96a0e9c15b548a1ef08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan?= Date: Mon, 19 May 2025 07:28:25 +0200 Subject: [PATCH] Update rag.py --- rag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag.py b/rag.py index 7ab2bc0..d97f50a 100644 --- a/rag.py +++ b/rag.py @@ -35,9 +35,9 @@ def split(text: str): return out # ------------------- charger meta et reconstruire passages ------------------ -meta_path = Path("corpus.meta.json") +meta_path = Path("chap.meta.json") if not meta_path.exists(): - raise SystemExit("corpus.meta.json introuvable – lancez d'abord index.py") + raise SystemExit("chap.meta.json introuvable – lancez d'abord index.py") meta = json.load(meta_path.open()) # mapping (file, part) -> chunk text