Skip to content

feat: parsed-results citation UX with page chips - #143

Merged
suguanYang merged 2 commits into
stagingfrom
feat/wangbinqi/parsed-results-citation-ux
Aug 20, 2026
Merged

feat: parsed-results citation UX with page chips#143
suguanYang merged 2 commits into
stagingfrom
feat/wangbinqi/parsed-results-citation-ux

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Rename chrome to Knowhere Brain and Parsed Results. Keep Sources | Parsed Results | Assistant. Show List/Tree in page-image mode (Tree default). Page cards use Page N + parse path.
  • Assistant answers use compact {title}/pN chips and a numbered SOURCES footer. Chip and footer pN jumps switch the viewed source, force List, and scroll to that parsed page. Original PDF preview stays closed.
  • Copy/download this turn as Markdown and PDF without chips or SOURCES.
  • Hydrate grep citation page numbers from the matching parsed chunk. That extra read becomes a fallback after Ontos-AI/knowhere-node-sdk ships grep pageNumbers.

Product lock: docs/parsed-results-citation-ux.md. Region overlay is not in this slice.

Test plan

  • Unit tests for citation labels, grouping, page-number hydration, chip/footer model, page cards, and citation click focus
  • Live local Tesla chat: chips resolve to TSLA-Q4-2025-Update.pdf/p4 and /p28
  • Click a chip and a footer pN and confirm the canvas jumps to that page card without opening original preview or changing query checkboxes
  • Copy answer, then download MD and PDF, and confirm citations are stripped
  • After the SDK grep PR publishes, bump @ontos-ai/knowhere-sdk and confirm grep cites still have /pN

Made with Cursor

Show {title}/pN chips, numbered SOURCES, page-card jump, Brain chrome, and turn export. Hydrate grep citation pages until the SDK match payload includes them.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowhere-notebook-staging Ready Ready Preview Aug 20, 2026 2:20am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
knowhere-notebook Ignored Ignored Preview Aug 20, 2026 2:20am

Request Review

Typecheck failed because `input.knowledge` stayed `Knowledge | undefined` inside the map callback after the guard.

Co-authored-by: Cursor <cursoragent@cursor.com>
@suguanYang
suguanYang merged commit 32df690 into staging Aug 20, 2026
7 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