Agent memory (short-term and long-term)
While completing tasks, agents store short-term information for the duration of the tasks (like user input and results of tool calls), so it’s available for fast retrieval and can be leveraged by future steps. Long-term memory stores persistent information that can be retained and reused across multiple tasks, sessions, or interactions. This memory accumulates and retains knowledge over time. This helps maintain a coherent understanding of the user’s preferences, past queries, or evolving objectives across sessions.
Read more
Data sources
To interact with existing information, AI agents connect to one or more databases to get the info they need to make decisions and provide accurate responses. Like any other app, agents do this through APIs. They can be trained to interact intelligently with APIs to get the data required, which can include generating queries. Redis does this well with Redis Data Integration.
Learn about RDI
Embedding models
A common technique to identify relevant info is Retrieval Augmented Generation or RAG. For RAG, structured and unstructured data is converted to a vector embedding that captures the semantic meaning of that data to return to the agent.
Vector database
Vector embeddings of available knowledge bases or context are stored in databases that support vectors and vector search, which many databases have recently added support for because of their usefulness for GenAI.
See our benchmarks