Skip to content

Conversation

@PsiACE
Copy link

@PsiACE PsiACE commented Jan 6, 2026

AgentScope Version

The main branch of AgentScope

Description

Added PowerMem integration as a new long-term memory backend for AgentScope.

Changes Made:

  • Implemented PowerMemLongTermMemory class supporting OceanBase/seekdb as vector store
  • Included example code demonstrating all memory operations with DashScope LLM

How to Test:

  1. Start OceanBase-CE or seekdb container: docker run -d --name oceanbase-ce --cpus=2 --memory=4g -p 2881:2881 quay.io/oceanbase/oceanbase-ce:latest
  2. Configure .env file with API keys and database settings
  3. Run example: python examples/functionality/long_term_memory/powermem/memory_example.py
  4. Verify data in database: SELECT * FROM powermem.memories;

Tested on OceanBase-CE 4.3.5.5 and seekdb .

$docker exec oceanbase-ce obclient -h172.17.0.2 -P2881 -uroot@sys -Dpowermem -e "SELECT id, document, metadata, CASE WHEN embedding IS NULL THEN 'No' ELSE 'Yes' END as has_embedding FROM memories LIMIT 3;"
id      document        metadata        has_embedding
663653407965315072      Prefers to stay in homestays when traveling to Hangzhou {"_fusion_info": {"fts_rank": 1, "rrf_score": 0.01639344262295082, "fts_weight": 0.5, "vector_rank": 1, "fusion_method": "rrf", "vector_weight": 0.5}, "search_count": 5, "last_searched_at": "2026-01-06T08:02:09.820780+00:00"}       Yes
663653408061784064      Likes to visit the West Lake in the morning     {"_fusion_info": {"fts_rank": null, "rrf_score": 0.008064516129032258, "fts_weight": 0.5, "vector_rank": 2, "fusion_method": "rrf", "vector_weight": 0.5}, "search_count": 5, "last_searched_at": "2026-01-06T08:02:09.820802+00:00"}   Yes
663653408082755584      Enjoys drinking Longjing tea    {"_fusion_info": {"fts_rank": null, "rrf_score": 0.007936507936507936, "fts_weight": 0.5, "vector_rank": 3, "fusion_method": "rrf", "vector_weight": 0.5}, "search_count": 4, "last_searched_at": "2026-01-06T08:02:09.820837+00:00"}   Yes

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@PsiACE
Copy link
Author

PsiACE commented Jan 6, 2026

We compared the results of the mem0 and powermem examples to verify that the work was correct.

@DavdGao DavdGao requested a review from qbc2016 January 7, 2026 09:57
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