PageIndex/pageindex/backend
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
cloud.py fix: restore 0.2.x config resolution and legacy submodule attribute access 2026-07-19 03:42:00 +08:00
local.py fix: harden edge cases in cloud upload, local doc_type, and PDF utilities 2026-07-18 23:44:45 +08:00
protocol.py fix: enforce collection membership on cloud doc-scoped operations 2026-07-16 06:20:24 +08:00