Skip to content

feat(memory): capture→distill v2 and Memento client integration - #169

Merged
EricNGOntos merged 4 commits into
mainfrom
feat/wuchengke/2026-09-02
Sep 10, 2026
Merged

EricNGOntos merged 4 commits into
mainfrom
feat/wuchengke/2026-09-02

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Implement coarse per-turn memory capture (fluid_observations) instead of single-pass direct write.
  • Wire memory search into agent harness prompt/tools.
  • Integrate updated Knowhere SDK and namespace handling for retrieval.
  • Add commitChatTurn orchestration for post-answer memory capture and activation recording.

Test plan

  • vitest run — 803 passed, 14 skipped

Notes

Distill batch trigger (pending ≥ 8) is implemented in this branch for the in-notebook path. Follow-up Memento service decoupling is tracked separately in Ontos-AI/Memento.

Made with Cursor

- Introduced a new observation layer for capturing user insights without early classification.
- Updated the memory extraction workflow to persist observations and trigger distillation.
- Refactored related services and repository methods to support the new observation model.
- Added tests for the new capture prompt and ensured existing functionality remains intact.

This change enhances the ability to gather user concerns and insights for future processing.
…agent harness

- Added a new memory search tool to retrieve insights from fluid memory, allowing for more context-aware responses.
- Updated the agent harness to utilize memory tools, ensuring that memory searches are prioritized before document retrieval.
- Introduced memory citations in output manifests to track references from memory searches.
- Enhanced tests to validate the new memory search behavior and its integration with existing functionalities.

This update improves the agent's ability to leverage past interactions for more relevant and informed responses.
- Updated `.env.local.example` to reflect the new Knowhere API base URL and added Memento service configuration.
- Added `@modelcontextprotocol/sdk` dependency to `package.json` and updated `pnpm-lock.yaml` accordingly.
- Removed deprecated constants and scripts related to the 观心 case, streamlining the codebase.
- Refactored agent harness to utilize the new memory capture functionality, enhancing memory management during chat interactions.
- Updated tests to reflect changes in memory handling and ensure proper integration with the new SDK.

This update improves the overall functionality and maintainability of the memory and chat systems.
… configuration

- Changed the namespace from "notebook-namespace" to "default" in chat service tests to align with new defaults.
- Updated the chat service to use a shared library namespace instead of fetching compatible namespaces.
- Increased the timeout for the Knowhere client to 120 seconds to enhance reliability during API calls.

These changes streamline namespace management and improve the integration with the Knowhere API.
@vercel

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

Request Review

@EricNGOntos
EricNGOntos merged commit 05d157f into main Sep 10, 2026
7 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/2026-09-02 branch September 10, 2026 10:36
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