Update rag.py
This commit is contained in:
parent
70d856c58b
commit
66ce80fe51
4
rag.py
4
rag.py
@ -35,9 +35,9 @@ def split(text: str):
|
|||||||
return out
|
return out
|
||||||
|
|
||||||
# ------------------- charger meta et reconstruire passages ------------------
|
# ------------------- charger meta et reconstruire passages ------------------
|
||||||
meta_path = Path("corpus.meta.json")
|
meta_path = Path("chap.meta.json")
|
||||||
if not meta_path.exists():
|
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())
|
meta = json.load(meta_path.open())
|
||||||
|
|
||||||
# mapping (file, part) -> chunk text
|
# mapping (file, part) -> chunk text
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user