PageIndex icon indicating copy to clipboard operation
PageIndex copied to clipboard

Refactor: Modularize utils.py into core package

Open denis-samatov opened this issue 8 months ago • 1 comments

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, and logging.py.
  • Kept the original utils.py as a backward-compatible facade so excellent integrations won't break.
  • Added a pytest suite for the new core modules.

This change focuses strictly on the restructuring without altering the underlying logic, making it safe and easy to review.

denis-samatov avatar Mar 26 '26 12:03 denis-samatov

@copilot open a new pull request to apply changes based on the comments in this thread

denis-samatov avatar Mar 26 '26 12:03 denis-samatov