# Memory

Memory systems are crucial for building sophisticated and context-aware AI agents. Dynamiq provides a robust and flexible memory management system that allows agents to learn from past interactions, maintain context, and reason more effectively. Below we'll outline the core concepts and functionalities of Dynamiq's memory system, including its various components and how they empower agents.

<figure><img src="/files/URc5R8lZ4BWNhDw2U6Rb" alt=""><figcaption></figcaption></figure>

### Core Concepts

Dynamiq's memory system is designed to provide a unified interface for interacting with various backend storage solutions. This abstraction simplifies development and enables flexibility in choosing the most suitable storage mechanism for your needs.

The central component is the `Memory` class, which handles the storage and retrieval of messages. It allows you to seamlessly switch between different implementations (in-memory, Pinecone, Qdrant, SQLite) without modifying your application's core logic.

### How Memory Systems Empower Agents

* **Contextual Awareness:** Memory allows agents to maintain context over conversations or task sequences, leading to more coherent and relevant responses.
* **Experience Accumulation:** Agents can learn from past actions and improve future decision-making.
* **Entity Understanding:** Agents can recognize and remember key entities, enhancing their ability to process and interact with complex information.


---

# 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.getdynamiq.ai/low-code-builder/memory.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.
