Skip to content

feat: put page chips on demo catalog Q&A - #310

Merged
suguanYang merged 2 commits into
mainfrom
feat/wangbinqi/demo-example-citation-chips
Aug 20, 2026
Merged

feat: put page chips on demo catalog Q&A#310
suguanYang merged 2 commits into
mainfrom
feat/wangbinqi/demo-example-citation-chips

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Insert [[cite:n]] next to claims in Tesla and SpaceX demo catalog answers.
  • Project page_citation_page_number, page_nums, and page_citation_asset_url from the resolved chunk onto each demo citation.

Notebook consumes these fields so seed chat matches live {title}/pN chips. Pair with the Notebook follow-up PR.

Test plan

  • uv run pytest tests/contract/test_demo_documents_contract.py::test_should_project_demo_example_cite_markers_and_page_numbers
  • GET /api/v1/demo/catalog Tesla xAI example includes [[cite:1]] and page_citation_page_number: 12
  • SpaceX Starlink example cites page 28

Made with Cursor

suguanYang and others added 2 commits August 20, 2026 16:09
Seed answers now include [[cite:n]] next to the claims, and citation payloads copy page numbers and page-image URLs from the resolved chunk so Notebook can render {title}/pN.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep GOOG, Meta earnings-call, and SpaceX demo artifacts as the API returned them. Citation chips pin a page on the original Root chunk instead of inventing per-page cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit 5118faa 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