mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-15 21:11:05 +02:00
build_tree_from_levels seeds every node's 'text', but the removal was gated on `strategy != "level_based"`, so a default Markdown index (level_based, if_add_node_text=False) leaked each node's full text into get_document_structure / storage — inconsistent with if_add_node_text=False, the README, and the legacy md_to_tree. Move the strip to the end of build_index and apply it to BOTH strategies: summary/description generation runs first and still sees the text, and create_clean_structure_for_description doesn't depend on text. From Codex review of PR #272. Claude-Session: https://claude.ai/code/session_01Kx5DgKbhK1N8autqXH8SmS |
||
|---|---|---|
| .. | ||
| backend | ||
| index | ||
| parser | ||
| storage | ||
| __init__.py | ||
| agent.py | ||
| client.py | ||
| cloud_api.py | ||
| collection.py | ||
| config.py | ||
| errors.py | ||
| events.py | ||
| page_index.py | ||
| page_index_md.py | ||
| retrieve.py | ||
| tokens.py | ||
| types.py | ||
| utils.py | ||