Skip to content

fix(chat): honor document scope and block source-required finalize before search - #170

Merged
EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/document-scope-and-finalize
Sep 11, 2026
Merged

EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/document-scope-and-finalize

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Streamline the outer answering agent to search Knowhere and cite by evidence pick numbers.
  • Pass include/exclude document IDs through the installed SDK and merge them with the user's excluded sources.
  • Keep finalize closed until intent is declared, and until a required document search has run. Ordinary chat and explicit no-search can still finish after intent.

Test plan

  • vitest run (813 passed, 14 skipped)
  • tsc --noEmit
  • eslint on the changed files
  • Remote PR CI green
  • After merge: confirm a source-required question cannot finalize before search

Made with Cursor

EricNGOntos and others added 2 commits September 11, 2026 13:00
- Removed unused types and functions related to KnowledgeReadResponse and KnowledgeGrepResponse from the knowhere-text and ledger modules.
- Updated the knowhereToolText to handle chunk formatting with a new chunkPickStart parameter for better citation management.
- Adjusted tests to reflect changes in response handling and ensure proper functionality with the updated code structure.

This refactor enhances code clarity and maintains focus on relevant response types, improving overall maintainability.
…fore search

Pass include/exclude document IDs through to Knowhere and keep finalize closed until a required document search has run.

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

vercel Bot commented Sep 11, 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 Sep 11, 2026 8:08am UTC
1 Skipped Deployment
Project Deployment Actions Updated
knowhere-notebook Ignored Ignored Preview Sep 11, 2026 8:08am UTC

Request Review

@EricNGOntos
EricNGOntos merged commit a80d913 into main Sep 11, 2026
7 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/document-scope-and-finalize branch September 11, 2026 08:12
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