Verbesserung der atomaren Sektions-Chunking-Strategie durch Einführung strikter Look-Ahead-Logik und präventiven Flush zur Gewährleistung von Sektionsgrenzen. Anpassungen an der Token-Schätzung und Umbenennung von Funktionen zur besseren Lesbarkeit.
This commit is contained in:
1 parent
1b40e29f40
commit
f9ac4e4dbf
2 files changed
+22
-23
No files matched your search
@@ -55,7 +55,7 @@ def parse_blocks(md_text: str) -> Tuple[List[RawBlock], str]:
|
||||
current_section_title = title
|
||||
section_path = f"/{current_section_title}"
|
||||
|
||||
# Die Überschrift selbst als Block hinzufügen (Fix: H1 wird nicht mehr gefiltert)
|
||||
# Die Überschrift selbst als Block hinzufügen
|
||||
blocks.append(RawBlock("heading", stripped, level, section_path, current_section_title))
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user