Skip to content

BootcampToProd/spring-boot-ai-in-memory-chat-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Spring AI Chat Memory: Build Smarter Conversational Applications

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


๐Ÿ“Œ Important Note

๐Ÿง  InMemoryChatMemory Focus

  • 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.

Languages