Skip to content

PR-E: wire grounded chat#7

Merged
suguanYang merged 1 commit into
feat/wangbinqi/notebook-mvpfrom
feat/wangbinqi/n-005-chat
May 7, 2026
Merged

PR-E: wire grounded chat#7
suguanYang merged 1 commit into
feat/wangbinqi/notebook-mvpfrom
feat/wangbinqi/n-005-chat

Conversation

@suguanYang
Copy link
Copy Markdown
Contributor

Summary

  • add the /api/chat route for authenticated, workspace-scoped chat turns
  • query Knowhere retrieval under the workspace namespace with per-request excludeDocumentIds
  • generate grounded answers through Vercel AI Gateway using the AI SDK model-string contract
  • persist user/assistant messages while keeping stored citations metadata-only
  • wire chat UI send state, source include/exclude toggles, and citation-to-section focus mapping

Verification

  • pnpm lint
  • pnpm test
  • pnpm test:integration
  • DATABASE_DRIVER=pg DATABASE_URL=postgres://postgres:postgres@127.0.0.1:55432/knowhere_notebook_e2e DASHBOARD_SESSION_URL=http://dashboard.127.0.0.1.nip.io:3000/api/orpc/users/getCurrentUser DASHBOARD_LOGIN_URL=http://dashboard.127.0.0.1.nip.io:3000/login NOTEBOOK_PUBLIC_URL=http://notebook.127.0.0.1.nip.io:3001 KNOWHERE_API_KEY=sk_placeholder KNOWHERE_BASE_URL=https://api-staging.knowhereto.ai AI_GATEWAY_API_KEY=vck_placeholder pnpm build

@suguanYang suguanYang merged commit ee3ecbd into feat/wangbinqi/notebook-mvp May 7, 2026
suguanYang added a commit that referenced this pull request May 8, 2026
…ptimization

Optimize chunk rendering: text wrapping, image/table placeholders, citation highlight (task #7)
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