Skip to content

feat: refresh TSLA demo with page-memory parse artifacts - #303

Merged
suguanYang merged 4 commits into
mainfrom
feat/wangbinqi/demo-page-view-sources
Aug 20, 2026
Merged

feat: refresh TSLA demo with page-memory parse artifacts#303
suguanYang merged 4 commits into
mainfrom
feat/wangbinqi/demo-page-view-sources

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Replace the TSLA demo source (apps/api/app/data/demo_documents/tsla-q4-2025) with a staging v2 page-memory parse: 37 page chunks, 18 images, 16 tables, and page_citation_assets/ page PNGs.
  • Teach demo catalog/projection to keep page chunk types, serve page_citation_assets, attach demo asset_urls on page_assets, and resolve citations from chunk summary when OCR text does not contain the original sentence.
  • Update TSLA chunk_count 70 → 71 and contract tests to assert page-citation asset upload.

Test plan

  • uv run pytest apps/api/tests/contract/test_demo_documents_contract.py -q (8 passed)
  • Notebook pnpm exec vitest run src/integrations/knowhere-demo.test.ts src/domains/chunks/index.test.ts src/domains/demo (29 passed)
  • Confirm demo catalog citations still resolve for xAI / energy storage / 2026 production
  • Materialize demo-tsla-q4-2025 and open a page chunk in Notebook to verify page PNGs render

Made with Cursor

suguanYang and others added 4 commits August 19, 2026 00:37
Replace the MinerU chunk demo with a v2 page-view parse so Notebook can cite rendered pages, and teach demo projection to serve page_citation_assets.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace 19 ready demo sources with staging v2 page-view parses so Notebook can cite rendered pages. Five parses failed on staging and the two Micron PDFs could not be fetched past Cloudflare, so those keep the previous chunk artifacts.

Co-authored-by: Cursor <cursoragent@cursor.com>
These seven sources were parsed locally but never committed, so the catalog counts pointed at old text/image/table trees.

Co-authored-by: Cursor <cursoragent@cursor.com>
GOOG 10-K, Meta earnings call, and SpaceX S-1 had one Root (or speaker) chunk spanning the whole PDF, so citation chips could not land on a page. Expand them to one page chunk per rendered page and point SpaceX examples at p2/p28/p32.

Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit 965810f into main Aug 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant