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.