|
12 | 12 | "\n",
|
13 | 13 | "## Introduction\n",
|
14 | 14 | "\n",
|
15 |
| - "Without memory, AI agents are like goldfish - they forget everything after each conversation and can't learn from past interactions or maintain context across sessions. Agentic systems require both **short-term** and **long-term** memory in order to complete tasks in a personalized and resilient manner. Memory is all about state management and [**Redis**](https://redis.io/try-free/?utm_source=nir&utm_medium=cpa&utm_campaign=2025-05-ai_in_production-influencer-nir&utm_content=sd-software_download-7013z000001WaRY) is the well-known in-memory database for exaclty this kind of use case today in production systems.\n", |
| 15 | + "Without memory, AI agents are like goldfish - they forget everything after each conversation and can't learn from past interactions or maintain context across sessions. Agentic systems require both **short-term** and **long-term** memory in order to complete tasks in a personalized and resilient manner. Memory is all about state management and [**Redis**](https://redis.io/try-free/) is the well-known in-memory database for exaclty this kind of use case today in production systems.\n", |
16 | 16 | "\n",
|
17 | 17 | "## What We'll Build\n",
|
18 | 18 | "\n",
|
|
41 | 41 | "## Short-term Memory\n",
|
42 | 42 | "The agent tracks chat history using Redis through LangGraph's [checkpointer](https://github.com/redis-developer/langgraph-redis). Each node in the graph (Retrieve Memories, Respond, Summarize) saves its state to Redis, including conversation history and thread metadata.\n",
|
43 | 43 | "\n",
|
44 |
| - "<img src=\"https://github.com/redis-developer/redis-ai-resources/blob/feat/update-memory-agent-recipe/python-recipes/agents/resources/short-term-memory.png?raw=true\" style=\"width: 100%; max-width: 400px;\">\n", |
| 44 | + "<img src=\"https://github.com/redis-developer/redis-ai-resources/blob/main/python-recipes/agents/resources/short-term-memory.png?raw=true\" style=\"width: 100%; max-width: 400px;\">\n", |
45 | 45 | "\n",
|
46 | 46 | "To prevent context window pollution, the agent summarizes conversations when they exceed a configurable length.\n",
|
47 | 47 | "\n",
|
|
51 | 51 | "- **Episodic**: User preferences and experiences\n",
|
52 | 52 | "- **Semantic**: General travel knowledge\n",
|
53 | 53 | "\n",
|
54 |
| - "<img src=\"https://github.com/redis-developer/redis-ai-resources/blob/feat/update-memory-agent-recipe/python-recipes/agents/resources/long-term-memory.png?raw=true\" style=\"width: 100%; max-width: 600px;\">\n", |
| 54 | + "<img src=\"https://github.com/redis-developer/redis-ai-resources/blob/main/python-recipes/agents/resources/long-term-memory.png?raw=true\" style=\"width: 100%; max-width: 600px;\">\n", |
55 | 55 | "\n",
|
56 | 56 | ">**NOTE**: These memory types align with the [CoALA](https://arxiv.org/abs/2309.02427) paper's concepts. Our agent's procedural memory is encoded in its Python workflow."
|
57 | 57 | ]
|
|
130 | 130 | "\n",
|
131 | 131 | "You have two options for running Redis:\n",
|
132 | 132 | "\n",
|
133 |
| - "1. **Redis Cloud**: For a fully-managed, seamless experience, use [a free instance of Redis Cloud](https://redis.io/try-free/?utm_source=nir&utm_medium=cpa&utm_campaign=2025-05-ai_in_production-influencer-nir&utm_content=sd-software_download-7013z000001WaRY).\n", |
| 133 | + "1. **Redis Cloud**: For a fully-managed, seamless experience, use [a free instance of Redis Cloud](https://redis.io/try-free).\n", |
134 | 134 | "2. **Local Redis**: For a simple, local (non-persistent) Redis instance, run the cell below."
|
135 | 135 | ]
|
136 | 136 | },
|
|
759 | 759 | "\n",
|
760 | 760 | "> NOTE: **This tutorial uses tool-based memory** for optimal balance of control and efficiency.\n",
|
761 | 761 | "\n",
|
762 |
| - "<img src=\"https://github.com/redis-developer/redis-ai-resources/blob/feat/update-memory-agent-recipe/python-recipes/agents/resources/memory-agents.png?raw=true\" alt=\"Memory Agents Diagram\" width=\"250\">" |
| 762 | + "<img src=\"https://github.com/redis-developer/redis-ai-resources/blob/main/python-recipes/agents/resources/memory-agents.png?raw=true\" alt=\"Memory Agents Diagram\" width=\"250\">" |
763 | 763 | ]
|
764 | 764 | },
|
765 | 765 | {
|
|
1866 | 1866 | "\n",
|
1867 | 1867 | "**Want to learn more?**\n",
|
1868 | 1868 | "1. [Read more](https://redis.io/blog/build-smarter-ai-agents-manage-short-term-and-long-term-memory-with-redis/) about agent memory patterns with Redis\n",
|
1869 |
| - "2. [Meet with our experts](https://redis.io/meeting/?utm_source=nir&utm_medium=cpa&utm_campaign=2025-06-ai_in_production&utm_content=cr-all_contact_us_forms-7013z000000evRk) to get a consultation on your architecture and where Redis can help." |
| 1869 | + "2. [Meet with our experts](https://redis.io/meeting/) to get a consultation on your architecture and where Redis can help." |
1870 | 1870 | ]
|
1871 | 1871 | }
|
1872 | 1872 | ],
|
|
0 commit comments