# 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:

```python
memory_context = {
    "context_entity_id": "entity1",
    "context_id": "context1",
    "memory_id": "memory1"
}

response = memorylake.short_memory_update_quality(user_uuid="user123", memory_context=memory_context, quality=0)
print(response)
```

### Conclusion <a href="#conclusion" id="conclusion"></a>

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!

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.groclake.ai/lakes/agent-management-and-deployment/memorylake/editor-5.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
