Wire token-budget packing into the overview/rerank fallback path

This commit is contained in:
2026-08-10 12:02:31 +07:00
parent 60b4397032
commit 46469468bb
18 changed files with 768 additions and 38 deletions
+3
View File
@@ -42,6 +42,9 @@ def load_documents(path: Path) -> list[RetrievalDocument]:
parent_id=raw.get("parent_id"),
requires_visual_check=raw.get("requires_visual_check", False),
drug_name=raw.get("drug_name"),
part_index=raw.get("part_index"),
part_count=raw.get("part_count"),
context_labels=tuple(raw.get("context_labels") or ()),
))
return documents