PageIndex
PageIndex copied to clipboard
Refactor: Modularize utils.py into core package
This PR addresses the feedback from previous reviews by splitting the monolithic utils.py into smaller, focused modules to improve maintainability.
Changes:
- Extracted logic from utils.py into a new
pageindex/core/package. - Created dedicated modules: llm.py,
pdf.py, tree.py, andlogging.py. - Kept the original utils.py as a backward-compatible facade so excellent integrations won't break.
- Added a
pytestsuite for the new core modules.
This change focuses strictly on the restructuring without altering the underlying logic, making it safe and easy to review.
@copilot open a new pull request to apply changes based on the comments in this thread