Skip to content

feat: add usecase examples#94

Merged
sairin1202 merged 2 commits intomainfrom
feat/test_case
Nov 18, 2025
Merged

feat: add usecase examples#94
sairin1202 merged 2 commits intomainfrom
feat/test_case

Conversation

@sairin1202
Copy link
Copy Markdown
Contributor

  • Add basic usage example
  • Add advanced scenario demonstrations
  • Include code snippets for common patterns

Copilot AI review requested due to automatic review settings November 18, 2025 16:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive usage examples and documentation for the MemU agentic memory framework. It streamlines the documentation by removing extensive self-hosting guides and localized README files, while significantly enhancing the main README with practical code examples demonstrating both RAG-based and LLM-based retrieval methods.

Key changes include:

  • Addition of a new query rewriter prompt template for conversation-aware retrieval
  • Comprehensive basic usage example showing memorization and dual retrieval approaches
  • Detailed explanation of RAG vs LLM-based retrieval methods with use cases
  • Removal of self-hosting documentation and multiple localized README files

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/memu/prompts/retrieve/query_rewriter.py New prompt template for rewriting queries using conversation history to resolve references and ambiguities
README.md Major update with installation instructions, comprehensive usage examples, and detailed retrieval method comparison
README.self_host.md Removed self-hosting documentation (454 lines)
README.ja.md Removed Japanese localized README (161 lines)
README.es.md Removed Spanish localized README (197 lines)
README.de.md Removed German localized README (183 lines)
README.ar.md Removed Arabic localized README (190 lines)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
</div>

MemU is a future-oriented Agentic Memory System that addresses the core issue of **inaccurate retrieval in traditional RAG-based memory frameworks**.
MemU is an agentic memory framework for LLM and AI agent backends. It receive multi-modal inputs, extracts them into memory items, and then organizes and summarizes these items into structured memory files.
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

Corrected grammar: 'receive' should be 'receives' to match the singular subject 'It'.

Suggested change
MemU is an agentic memory framework for LLM and AI agent backends. It receive multi-modal inputs, extracts them into memory items, and then organizes and summarizes these items into structured memory files.
MemU is an agentic memory framework for LLM and AI agent backends. It receives multi-modal inputs, extracts them into memory items, and then organizes and summarizes these items into structured memory files.

Copilot uses AI. Check for mistakes.
Comment thread README.md

# Memorize a conversation
memory = await service.memorize(
resource_url="tests/data/example_conversation.json",
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

The code example references tests/data/example_conversation.json which does not exist in the repository. This will cause the example to fail when users try to run it. Consider either creating this example file, using a more accessible path, or providing instructions on how to create the required JSON file.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,32 @@
PROMPT = """Your task is to rewrite a user query by resolving references and ambiguities using the conversation history.
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

The new query_rewriter.py file defines a PROMPT variable but is not imported or used anywhere in the codebase. The existing code uses query_rewriter_judger.py instead. This creates confusion about which prompt template is actually being used for query rewriting. Either integrate this new prompt into the retrieval flow or document its intended future use.

Copilot uses AI. Check for mistakes.
@sairin1202 sairin1202 merged commit 47b5b39 into main Nov 18, 2025
2 checks passed
@sairin1202 sairin1202 deleted the feat/test_case branch November 18, 2025 16:23
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