PageIndex/pageindex/index
Ray 0f593c65d9 fix: restore 0.2.x config resolution and legacy submodule attribute access
page_index() and ConfigLoader silently dropped config.yaml after the
refactor: defaults came from IndexConfig's hardcoded fields, flipping
if_add_doc_description on (an extra billed LLM call per document) and
discarding user-edited YAML including a custom default_path. Both now
resolve explicit args > YAML > IndexConfig field defaults via
IndexConfig.from_yaml, matching the CLI. The new SDK keeps its pure-code
config path.

import pageindex also lost the utils / page_index_md submodule
attributes (pageindex.utils.print_tree raised AttributeError). A module
__getattr__ now imports the shims lazily, so plain imports stay free of
deprecation warnings while first use of a legacy attribute binds the
module and warns.

Also trims non-essential comments from the BASE_URL fix.

Claude-Session: https://claude.ai/code/session_014B4HZkjdSiZXDmJtH5Jexn
2026-07-19 03:42:00 +08:00
..
__init__.py feat: add PageIndex SDK with local/cloud dual-mode support (#207) 2026-04-08 20:21:58 +08:00
page_index.py fix: restore 0.2.x config resolution and legacy submodule attribute access 2026-07-19 03:42:00 +08:00
page_index_md.py Merge upstream/main into dev; port hardening into index/ 2026-07-17 18:11:14 +08:00
pipeline.py fix: harden indexing and query paths against malformed inputs 2026-07-16 06:20:36 +08:00
utils.py fix: restore 0.2.x config resolution and legacy submodule attribute access 2026-07-19 03:42:00 +08:00