Skip to content

fix: migrate Notebook chat to shared demo corpus - #186

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/shared-demo-chat
Oct 24, 2026
Merged

suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/shared-demo-chat

Conversation

@suguanYang

@suguanYang suguanYang commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Notebook chat currently prepares selected demos through an upstream materialization endpoint that now returns 410. The preparation failure becomes a Notebook 502 and prevents the question from being sent. This change queries the shared demo corpus directly and keeps source selection, saved citations, and media reads consistent with its immutable revisions.

Behavior

  • Resolve visible shared sources server-side, query __knowhere_demo__ with selected document IDs, and keep private retrieval separate. Unselected Library entries, unchecked scopes, folders, and legacy private demo copies cannot broaden shared retrieval.
  • Replace Library copying with idempotent local selection. Keep the Notebook materialize route as a metadata-only compatibility adapter; hiding shared or legacy demo entries never archives the corpus or deletes private copies.
  • Preserve retrieval-time namespace, revision, and chunk identities through citations, images, tables, persisted chat history, pagination, and caches. Historical citation sources remain separate from the sidebar and current query scope.
  • Display and persist partial-retrieval coverage warnings. Preserve meaningful upstream preparation/auth/unavailable statuses, and retain private chat and archive behavior when the demo catalog is unavailable.
  • Serve original files and assets through stable revision-pinned routes, including PDF Range requests. No database migration, SDK upgrade, or Knowhere backend change is included.

Validation

  • Regression tests were run failing before implementation, including retired materialization, scope isolation, actual Effect failures, revision changes, history persistence, and media provenance.
  • pnpm lint
  • pnpm typecheck
  • pnpm test — 916 passed, 14 skipped; database integration tests remain skipped without their test database.
  • pnpm build
  • All 13 Playwright browser regressions pass using installed Chrome, including direct shared chat, coverage warnings, historical revision focus, and deterministic PDF preview reopening.
  • Manual cross-module review covered selection boundaries, archive safety, revision propagation, and cached history.
  • GitHub CI and CodeQL passed for d336dd1c1f811f0b10064d4358c99ca8e91d1aa5.

Production verification

  • Merged as a74ca3362024982f3ee8b3a79822f49bb8241e2c. The production Vercel deployment is READY and serves notebook.knowhereto.ai.
  • Live guest API checks passed: 27 shared sources carry immutable revisions; both tested chunk pages preserve the requested namespace and revision; a pinned image returns 200; the pinned original PDF supports a 1024-byte Range read with 206; an absent historical revision returns 404 with an unavailable state.
  • Between 03:39:31 and 03:44:51 UTC on 2026-10-24, Knowhere Logfire recorded 20 demo reads and zero materialization calls. There were no retrieval queries in that window, so this does not establish authenticated retrieval acceptance.
  • Authenticated production chat, mixed retrieval, deselection, hiding, and persisted citation UI acceptance remain pending. The browser-control connection times out even when binding existing tabs or requesting a screenshot; API checks and CI are not substitutes for those flows.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
knowhere-notebook-staging Ready Ready Preview Oct 24, 2026 3:10am UTC
1 Skipped Deployment
Project Deployment Actions Updated
knowhere-notebook Ignored Ignored Oct 24, 2026 3:10am UTC

Request Review

@suguanYang
suguanYang merged commit a74ca33 into main Oct 24, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview – knowhere-notebook-staging — d336dd1c Deployed Oct 24, 2026 by vercel[bot]
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