Skip to content

Adds missing re import#281

Merged
KylinMountain merged 1 commit into
VectifyAI:mainfrom
Mouli04:patch-1
Jul 3, 2026
Merged

Adds missing re import#281
KylinMountain merged 1 commit into
VectifyAI:mainfrom
Mouli04:patch-1

Conversation

@Mouli04

@Mouli04 Mouli04 commented May 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@KylinMountain KylinMountain left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Mouli04 — verified the missing import (both helpers use re but it was never imported). Merging! 🙏

@KylinMountain KylinMountain reopened this Jul 3, 2026
@KylinMountain
KylinMountain merged commit 2cf4668 into VectifyAI:main Jul 3, 2026
3 checks passed
KylinMountain added a commit that referenced this pull request Jul 7, 2026
main advanced (litellm 1.84.0 #342, #188 TOC fixes, #281, README) while
dev turned pageindex/page_index.py and utils.py into deprecation shims
over pageindex/index/*. Both sides touched those two files, hence the
conflict.

Resolution:
- Keep dev's shims for the two top-level modules (the real implementation
  lives in pageindex/index/*). requirements.txt auto-merged to
  litellm==1.84.0.
- #188 ("prevent KeyError crash and context exhaustion in TOC
  processing") landed on main's top-level page_index.py, which is now a
  shim on dev — so its fixes were NOT in dev's index/page_index.py.
  Ported them into pageindex/index/page_index.py (preserving dev's
  IndexConfig/bool integration): .get() on the TOC check functions +
  detect_page_index, incremental-chat_history retry loops in
  extract_toc_content and toc_transformer, truncation moved before the
  loop, .get('table_of_contents', []) and the single_toc_item_index_fixer
  None guard.
- Repoint #188's merged test (tests/test_issue_163.py) at
  pageindex.index.page_index so its patches hit the module where the code
  now lives (they were silently hitting the shim → real LLM calls).

Full suite: 158 passed, 2 skipped.

Claude-Session: https://claude.ai/code/session_01Kx5DgKbhK1N8autqXH8SmS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants