This repository demonstrates how to use Spring AI's InMemoryChatMemory implementation to manage chat conversations efficiently.
๐ It covers two key use cases:
- A shared in-memory chat memory for all users.
- A user-specific in-memory chat memory to maintain individual conversation history.
๐ Dive Deeper: For a complete walkthrough and detailed explanation, read our blog:
๐ Spring AI Chat Memory: Build Smarter Conversational Applications
๐ฅ Prefer a visual walkthrough? Hereโs a YouTube demo wherein Iโve explained the implementation step by step: ๐ https://youtu.be/QTaCb7lxyL8
- This implementation uses
InMemoryChatMemory
โ ideal for POCs or applications where persistent storage is not required. - Supports both single-session and multi-user chat handling with configurable memory key resolvers.