Updating Memory Quality
Overview
You can update the quality of a memory using the short_memory_update_quality
method.
So, it's very important that we label memory. So, right now we label memory as 'good' or 'bad'. Right now we label '1' for good memory and '0' for bad memory. It's important to label memory so, that your agent can differentiate on which knowledge to rely or not.
Parameters
user_uuid
: A unique identifier for the user.memory_context
: A dictionary containing the following keys:context_entity_id
(required): Identifier for the context entity.context_id
(required): Identifier for the context.memory_id
(required): Identifier for the specific memory.
quality
: The new memory quality value to be set.
Usage Example
To update the memory quality:
Conclusion
Memorylake makes it easy to store, retrieve, and manage key-value pairs in Redis using a structured approach. With these examples, you can effectively integrate Memorylake into your project!
Last updated