Skip to content

Feat/rewrite query#149

Merged
CaralHsi merged 25 commits intoMemTensor:devfrom
endxxxx:feat/rewrite-query
Jul 29, 2025
Merged

Feat/rewrite query#149
CaralHsi merged 25 commits intoMemTensor:devfrom
endxxxx:feat/rewrite-query

Conversation

@endxxxx
Copy link
Collaborator

@endxxxx endxxxx commented Jul 24, 2025

Description

Summary: rewrite query according to the context before searching memories

Reviewer: @CaralHsi

Checklist:

  • I have performed a self-review of my own code | 我已自行检查了自己的代码
  • I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
  • I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
  • I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
  • I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
  • I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人

fridayL and others added 6 commits July 11, 2025 20:27
Recent updates include:

Updated feature request template and documentation links/images
Added structure reorganizer and conflict resolver functionality
Implemented OpenAI memory integration with evaluation guide
Updated memory reader with bug fixes

Key changes: Template improvements, new conflict resolution tools,
memory system enhancements, and bug fixes.
## Description
Bug Fixes:

Fixed reorganizer bugs and argument errors
Resolved None issue in reorganizer queue
Updated Python version constraints

New Features:

Added support for multiple embedders (Ark/Volcengine, Universal API)
Introduced Neo4j database integration and sharing capabilities
Added evaluation pipeline (longmemeval)
Implemented multi-language support and customizable system prompts
Added MCP (Model Context Protocol) server support with client demo

Improvements:

Enhanced memory management with ID returns and clustering optimizations
Simplified user onboarding with basic memos
Expanded LLM API support and optimized dependency management
Added development tools (download examples, issue templates, stale
management)

Documentation & DevOps:

Updated issue/PR templates and workflows
Improved multi-user example implementations

with significant additions to embedding support, database backends, and
user experience improvements.
- Fix TypeError when calling MOSProduct.chat() method
- MOSCore.chat() expects _build_system_prompt(memories, base_prompt=...)
- MOSProduct._build_system_prompt had incompatible signature (user_id, memories)
- Updated signature to match parent class interface
- Removed unused user_id parameter from method
@tangg555 tangg555 requested a review from CaralHsi July 24, 2025 03:21
Copy link
Collaborator

@fridayL fridayL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please resolve conflicts and ci code

CaralHsi and others added 12 commits July 26, 2025 10:36
…mTensor#146)

## Description

Summary: Fix MOSProduct._build_system_prompt method signature mismatch
that caused TypeError when calling MOSProduct.chat(). The child class
method signature didn't match what the parent MOSCore class expected,
breaking inheritance contract.

Fix: #(no existing issue - this was discovered during development)

Docs Issue/PR: (not applicable - internal bug fix)

Reviewer: @(leave blank if you don't know who reviews PRs in this repo)

## Checklist:

- [x] I have performed a self-review of my own code | 我已自行检查了自己的代码
- [ ] I have commented my code in hard-to-understand areas |
我已在难以理解的地方对代码进行了注释
- [ ] I have added tests that prove my fix is effective or that my
feature works | 我已添加测试以证明我的修复有效或功能正常
- [ ] I have created related documentation issue/PR in
[MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) (if applicable) |
我已在 [MemOS-Docs](https://github.com/MemTensor/MemOS-Docs) 中创建了相关的文档
issue/PR(如果适用)
- [ ] I have linked the issue to this PR (if applicable) | 我已将 issue
链接到此 PR(如果适用)
- [ ] I have mentioned the person who will review this PR | 我已提及将审查此 PR
的人
@CaralHsi CaralHsi merged commit 3106da1 into MemTensor:dev Jul 29, 2025
20 checks passed
tangg555 pushed a commit to tangg555/MemOS that referenced this pull request Jul 29, 2025
* fix: align MOSProduct._build_system_prompt signature with MOSCore

- Fix TypeError when calling MOSProduct.chat() method
- MOSCore.chat() expects _build_system_prompt(memories, base_prompt=...)
- MOSProduct._build_system_prompt had incompatible signature (user_id, memories)
- Updated signature to match parent class interface
- Removed unused user_id parameter from method

* feat: rewrite query before searching memories

* fix: JsonDecodeError

* fix: fix prompt

* ran format

* feat: rewrite and reinforce query

* feat: rewrite and reinforce query

* feat: make internet search optional

* fix: disable rewrite query seperately

* feat: finish rewrite query

* fix: avoid senseitive content in the memories

* fix: test bug in tree_task_goal_parser

* fix: info is None bug

* fix: bug in nebula get_by_metadata

* fix: add info to memos_core unittest

---------

Co-authored-by: chunyu li <78344051+fridayL@users.noreply.github.com>
Co-authored-by: muzzlol <muzxmmilkhxn@gmail.com>
Co-authored-by: CaralHsi <caralhsi@gmail.com>
tianxing02 pushed a commit to tianxing02/MemOS that referenced this pull request Feb 24, 2026
* fix: align MOSProduct._build_system_prompt signature with MOSCore

- Fix TypeError when calling MOSProduct.chat() method
- MOSCore.chat() expects _build_system_prompt(memories, base_prompt=...)
- MOSProduct._build_system_prompt had incompatible signature (user_id, memories)
- Updated signature to match parent class interface
- Removed unused user_id parameter from method

* feat: rewrite query before searching memories

* fix: JsonDecodeError

* fix: fix prompt

* ran format

* feat: rewrite and reinforce query

* feat: rewrite and reinforce query

* feat: make internet search optional

* fix: disable rewrite query seperately

* feat: finish rewrite query

* fix: avoid senseitive content in the memories

* fix: test bug in tree_task_goal_parser

* fix: info is None bug

* fix: bug in nebula get_by_metadata

* fix: add info to memos_core unittest

---------

Co-authored-by: chunyu li <78344051+fridayL@users.noreply.github.com>
Co-authored-by: muzzlol <muzxmmilkhxn@gmail.com>
Co-authored-by: CaralHsi <caralhsi@gmail.com>
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.

4 participants