Update rag.py
This commit is contained in:
parent
eaeae5f1f5
commit
f12bee11b7
2
rag.py
2
rag.py
@ -61,7 +61,7 @@ DOCS: dict[int,str] = {}
|
||||
for base_offset, meta in zip(start_offset, metas):
|
||||
for i, m in enumerate(meta):
|
||||
rel_path = m.get("path") or m.get("file")
|
||||
full_path = ROOT / rel_path
|
||||
full_path = f"{ROOT}/{rel_path}"
|
||||
DOCS[base_offset + i] = full_path.read_text(encoding="utf-8")
|
||||
print("[dim]Cache texte préchargé.[/]")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user