🧵 1/ LLMs are stateless. They don’t remember past interactions. Every prompt is treated as an isolated request. To build actual agents, we need memory. Here’s how to do it using Spring AI and Redis — short-term + long-term memory, fully integrated. (@redis.io)
Post
4/ Long-term memory = knowledge the agent has accumulated over time and lives through chats. Stored as vector embeddings. Retrieved via semantic search. The agent finds relevant info by similarity when needed. Long-term memory can be used even when we start a new chat:
0 reposts0 likes