PageIndex/pageindex/backend
mountain 4456b92968 fix: preserve image metadata in cloud get_page_content
Cloud OCR page results carry an `images` list per page, but the page
reconstruction only kept `page` and `content`, dropping images for cloud
callers of collection.get_page_content(). The local backend preserves them
and the PageContent contract / SDK prompts expect them (so the downstream
UI can render figures). Pass `images` through, omitting it when empty to
mirror the local backend's shape. Verified against the real OCR endpoint:
per-page keys are page_index/markdown/images.
2026-07-09 19:26:57 +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: preserve image metadata in cloud get_page_content 2026-07-09 19:26:57 +08:00
local.py fix: return actionable error for malformed page ranges in local tool 2026-07-09 19:22:04 +08:00
protocol.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00