Skip to content

Conversation

@NTLx
Copy link
Contributor

@NTLx NTLx commented Jan 31, 2026

This PR adds full support for importing and exporting memories, addressing Issue #137.

This contribution is part of the OceanBase AI Coding Event.

🚀 Features

  • Export: Export memories to JSON (full data) or CSV (spreadsheet compatible).
  • Import: Bulk import memories from JSON or CSV files.
  • API Support: New endpoints GET /v1/memories/export and POST /v1/memories/import.

🛠 Implementation

  • Utils: Created src/powermem/utils/io.py for robust serialization logic.
  • Core: Updated Memory class with export_memories and import_memories methods.
  • API: Added streaming response for exports and file upload for imports.

✅ AI Contribution Details

  • Design: Implemented a layered architecture (Utils -> Core -> API) for maintainability.
  • Formats: Chose JSON for fidelity and CSV for accessibility.
  • Performance: Used streaming for large exports.

@Teingi
Copy link
Member

Teingi commented Jan 31, 2026

There are merge conflicts in this pull request. Please resolve them before we can proceed with the review.

@NTLx
Copy link
Contributor Author

NTLx commented Jan 31, 2026

Hi @Teingi, I have resolved the merge conflicts by merging the latest main branch into this feature branch. Please take another look when you have time. Thanks!

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.

2 participants