Update rag.py

This commit is contained in:
Stéphan Peccini 2025-05-19 07:29:28 +02:00
parent 66ce80fe51
commit 282a7ad739

4
rag.py
View File

@ -35,9 +35,9 @@ def split(text: str):
return out
# ------------------- charger meta et reconstruire passages ------------------
meta_path = Path("chap.meta.json")
meta_path = Path("corpus.meta.json")
if not meta_path.exists():
raise SystemExit("chap.meta.json introuvable lancez d'abord index.py")
raise SystemExit("corpus.meta.json introuvable lancez d'abord index.py")
meta = json.load(meta_path.open())
# mapping (file, part) -> chunk text