Skip to content

Conversation

CaralHsi
Copy link
Collaborator

@CaralHsi CaralHsi commented Sep 8, 2025

This PR introduces multiple major updates across MemOS, focusing on evaluation, request context/logging, graph DB backends, retrieval/quoting, API capabilities, and prompts/templates.

Summary:

  • Evaluation: Added LoCoMo RAG & LongMemEval scripts with reproducible run commands.

  • API & Middleware: Introduced request context and middleware for trace IDs and multi-user support; added non-streaming Chat Complete and “further questions” generation.

  • Logging & Observability: Implemented custom logger with trace ID, and asynchronous handling for logs, notifications, and memory writes.

  • Graph Backends: Improved NebulaGraph session pool management and stability; fixed Neo4j Community bug.

  • Retrieval & References: Enabled memos_cube-scoped retrieval, adjusted reference display/format, and added reject-answer path.

  • Prompts & Templates: Added multilingual templates and refined Mem Reader prompt.

  • LLM & Examples: Updated vLLM adapter, fixed multi-user example, added user_id field to general_text.

  • Testing: Added/updated tests for request context, memory reader, searcher, and logging.

Fix: #(issue)

Docs Issue/PR: (docs-issue-or-pr-link)

Reviewer: @(reviewer)

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 的人

CaralHsi and others added 30 commits August 8, 2025 16:09
* feat: check nodes existence

* feat: use different template for different language input

* feat: use different template for different language input
* update lme_rag

* add locomo rag&full-context eval

* delete redundance code

* update locomo rag bash file

---------

Co-authored-by: CaralHsi <[email protected]>
Co-authored-by: chunyu li <[email protected]>
* feat: add further questions for

* fix: remove  print

* feat: add stream for further question

---------

Co-authored-by: CaralHsi <[email protected]>
* fix neo4j parameters

* fix load error:Invalid unbroken double quoted character sequence: near \

* feat: skip failed uploading
* feat: modify system prompt, add refuse

* feat: at least return memories

* feat: modify ref
* feat: modify system prompt, add refuse

* feat: at least return memories

* feat: modify ref

* feat: add memcube retrieval

* fix: test bug
* feat: modify system prompt, add refuse

* feat: at least return memories

* feat: modify ref

* feat: add memcube retrieval

* fix: test bug

* feat: modify prompt
* feat: modify system prompt, add refuse

* feat: at least return memories

* feat: modify ref

* feat: add memcube retrieval

* fix: test bug

* feat: modify prompt

* feat: modify reference format
…pt (#248)

* fix: fix mem cube  bug for docker

* fix: further questions
…oscore (#253)

* feat: add chat complete

* feat: fix chat bug
* fix: mem-reader bug

* fix: test mem reader
* fix: mem-reader bug

* fix: test mem reader

* feat: modify nebula session pool
#261)

* feat: Asynchronous processing of logs, notifications and memory additions,handle synchronous and asynchronous environments

* feat: fix format
* feat: mos add load sdk for user

* feat: remove think for reason model
…gging (#265)

* feat: timeout for nebula query 5s->10s

* feat: exclude heavy feilds when calling memories from nebula db

* test: fix tree-text-mem searcher text
* feat: add custom request log

* fix: format error

* fix: lint error

* feat: add request middleware

* fix: format error

* feat: support CUSTOM_LOGGER_WORKERS env

* feat: delete test_log

---------

Co-authored-by: CaralHsi <[email protected]>
feat: update post processing  memory for chatbot
* feat: add custom request log

* fix: format error

* fix: lint error

* feat: add request middleware

* fix: format error

* feat: support CUSTOM_LOGGER_WORKERS env

* feat: delete test_log

* feat: add trace_id to log record

* revert: log code

---------

Co-authored-by: CaralHsi <[email protected]>
* feat: timeout for nebula query 5s->10s

* feat: exclude heavy feilds when calling memories from nebula db

* test: fix tree-text-mem searcher text

* feat: adjust prompt

* feat: adjust prompt
* feat: add custom request log

* fix: format error

* fix: lint error

* feat: add request middleware

* fix: format error

* feat: support CUSTOM_LOGGER_WORKERS env

* feat: delete test_log

* feat: add trace_id to log record

* revert: log code

* feat: add request context

* feat: add debug log

* feat: delete useless code

* feat: delete requestcontext logger body

* feat: add context thread

* feat: add context thread

* feat: add context thread

* test: log and context_thread

* revert: log console

* fix: conflict from dev

* fix: ci error

* fix: ci error

---------

Co-authored-by: CaralHsi <[email protected]>
Co-authored-by: harvey_xiang <[email protected]>
CaralHsi and others added 10 commits September 9, 2025 11:58
* feat: parallel doc process

* add memory size config for tree

* feat: add reranker Facktory

* feat: pass reranker from tree config

* feat: add reranker config in mos product

* style: modify annotation

* feat: slightly adjust similarity threshold for returned memories

* test: fix researcher test script
* feat: parallel doc process

* add memory size config for tree

* feat: add reranker Facktory

* feat: pass reranker from tree config

* feat: add reranker config in mos product

* style: modify annotation

* feat: slightly adjust similarity threshold for returned memories

* test: fix researcher test script

* fix: reranker config bug
* feat: parallel doc process

* add memory size config for tree

* feat: add reranker Facktory

* feat: pass reranker from tree config

* feat: add reranker config in mos product

* style: modify annotation

* feat: slightly adjust similarity threshold for returned memories

* test: fix researcher test script

* fix: reranker config bug

* feat: similarity threshold 0.52->0.30
* feat: parallel doc process

* add memory size config for tree

* feat: add reranker Facktory

* feat: pass reranker from tree config

* feat: add reranker config in mos product

* style: modify annotation

* feat: slightly adjust similarity threshold for returned memories

* test: fix researcher test script

* fix: reranker config bug

* feat: similarity threshold 0.52->0.30

* feat: min memories:3
* feat: update prompt and add search logs for mem

* fix:ci

* fix: sync system prompt
* feat: modify search rephrase prompt

* feat: modify task parser prompt

* feat: add searched log
* feat: update filter mem

* fix:change top

* fix:rm embedding
* feat: updatebug

* fix: bugfix
@fridayL fridayL changed the title Dev chore: bump version to v1.0.0 Sep 10, 2025
@fridayL fridayL marked this pull request as ready for review September 10, 2025 08:15
@fridayL fridayL changed the title chore: bump version to v1.0.0 chore: bump version to v1.0.1 Sep 10, 2025
@fridayL fridayL merged commit 850a600 into main Sep 10, 2025
40 checks passed
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.

6 participants