mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 10:05:47 -04:00
[Plugin Request]: Long-term Memory Assistant - az_agent_long_memory #503
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yuntaosong on GitHub (Feb 8, 2026).
Plugin Name
az_agent_long_memory
Function Description
Plugin Feature Description
AZMemory Long-term Memory Plugin for Intelligent Assistant
I. Functional Overview
This plugin empowers the intelligent assistant with core long-term memory capabilities. By automatically storing and managing historical dialogue data between users and the assistant, it precisely retrieves user preferences, behavioral habits, and background information relevant to the current interaction. This enables the assistant to achieve "continuous recognition and understanding" of the user. Users no longer need to repeatedly explain basic circumstances, as every conversation can provide more tailored responses based on historical accumulation, significantly enhancing the coherence and intelligence of the interaction.
II. Core Modules
(1) Memory Retrieval Module
Based on the user's current query intent, quickly match and extract relevant memory fragments from the historical dialogue to provide accurate contextual support for the Large Language Model (LLM).
Returns JSON structured data, primarily containing the memory field:
Triggered before the LLM generates a response, injecting the retrieved memory information into the prompt. This allows the model to generate personalized responses based on the user's historical interactions. (For example, if a user previously mentioned "working at night," the model can recommend 24-hour delivery services when consulting about coffee purchases later).
(2) Memory Update Module
Real-time saving of the complete dialogue records between the user and the assistant (including user queries and the assistant's final responses), continuously enriching the long-term memory database and providing a stable, comprehensive data foundation for memory retrieval.
Automatically triggered at the end of each dialogue to upload the complete interaction pair of "user query + assistant response" to the memory database, achieving real-time updating and accumulation of long-term memory. (For example, when a user adds new preferences or supplements background information, it can be instantly stored in the memory database for subsequent retrieval).
III. Core Value
IV. Application Scenarios
Official Website URL
https://azmem.tech/