Skip to content

chore: promote main to staging - #183

Merged
EricNGOntos merged 20 commits into
stagingfrom
main
Sep 21, 2026
Merged

EricNGOntos merged 20 commits into
stagingfrom
main

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Promote current main onto staging, including profile/lessons inject and earlier evidence consume work.

Test plan

  • Staging CI / Vercel staging

Made with Cursor

EricNGOntos and others added 20 commits September 11, 2026 19:16
- Added support for assigning sources to folders, enhancing organization and management capabilities.
- Introduced new `folderId` property in various source-related files and updated relevant tests to ensure proper functionality.
- Modified source route service to handle folder assignments, including validation and error handling for folder-related requests.
- Updated tests across multiple domains to cover new folder assignment scenarios, ensuring comprehensive coverage.

This enhancement improves the user experience by allowing better categorization of sources within the application.
- Added support for retaining evidence picks after retrieval, introducing a new `retainPicks` method in the ledger.
- Implemented pending retention range management to track newly added evidence chunks.
- Updated the agent harness runtime to prepare answer context based on retained evidence, improving response accuracy.
- Refactored tests to cover new retention functionality and ensure proper integration with existing workflows.

This enhancement improves the agent's ability to manage and utilize evidence effectively, leading to more accurate and contextually relevant responses.
- Introduced a new `resolveRetainedConnectedAssets` method in the ledger to handle connected assets for retained evidence, improving the assembly of answer context.
- Refactored the `composeAnswerContext` function to support multiple asset types, including tables and images, ensuring accurate representation in responses.
- Updated tests to validate the new asset resolution functionality and its integration with the answer context generation process.

This enhancement improves the agent's ability to utilize connected assets effectively, leading to richer and more informative responses.
…ndling

- Enhanced the `composeAnswerContext` function to include handling for cases where no knowledge base or memory results are found, providing clearer feedback in the generated messages.
- Updated the test suite to cover new scenarios, ensuring that the context composition accurately reflects the absence of results and maintains the integrity of user interactions.
- Refactored memory item formatting to improve clarity and consistency in the output.

These changes enhance the agent's ability to communicate effectively when searches yield no results, leading to a more informative user experience.
- Removed the `referencedChunkCount` from the response structure to streamline data handling.
- Updated tests to ensure that responses do not contain unwanted fields, specifically checking for provenance-only IDs and other irrelevant data.
- Enhanced the logic for processing referenced chunks to focus on those with evidence, improving the accuracy of the citation pipeline.

These changes improve the clarity and relevance of the data returned by the agent, leading to more precise responses in user interactions.
feat: refine notebook retrieval context and folders
Cite memories by mem:N in the prompt and resolve item ids in code so the model does not copy UUIDs.

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

Connect Notebook chat to Memento session memory
Online chat can call Memento before it is deployed; keep the turn going and mark those misses for later.

Co-authored-by: Cursor <cursoragent@cursor.com>
Treat unreachable memory search and send as warnings
Persist the Notebook agent TRACE on chat messages and include it with the last five turns so Memento can extract error and reflection after a complaint. Also limit Knowhere search to once per turn.

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

Send current-turn TRACE and recent turns with memory capture
Place figures at the chunk placeholder, skip unreachable image/table URLs with a warning, and keep the default chat model on DeepSeek V4.1 Flash.

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

作答时把图内联成 base64,不再把 S3 链接交给模型
Stop composing tables and images locally. Answer context now eats the whole Knowhere evidence package.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…e-consume

feat(chat): consume Knowhere assembled evidence for answers
Co-authored-by: Cursor <cursoragent@cursor.com>
…inject

feat(chat): inject profile, lessons, and crystal ranking factors
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
knowhere-notebook Ready Ready Preview Sep 21, 2026 11:56am UTC
knowhere-notebook-staging Ready Ready Preview Sep 21, 2026 11:56am UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – knowhere-notebook-staging — dc6b27b3 Deployed Sep 21, 2026 by vercel[bot]
Production – knowhere-notebook — dc6b27b3 Deployed Sep 21, 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