Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spring AI Chat Memory - Cassandra

This repository demonstrates how to use Spring AI's Chat Memory with Cassandra to manage chat conversations persistently and reliably.

πŸš€ It covers two key use cases:

  • A shared chat memory for all users (using a common conversation ID).
  • A user-specific chat memory where each conversation history is isolated.

πŸ“– Dive Deeper: For a complete walkthrough and detailed explanation, read our blog:
πŸ‘‰ Spring AI Chat Memory with Cassandra: Building Persistent Conversational Applications

πŸŽ₯ Visual Learning: Prefer video tutorials? Watch our step-by-step implementation guide on YouTube.
πŸ‘‰ Spring AI Chat Memory with Cassandra: Building Persistent Conversational Applications


πŸ“¦ Environment Variables

Make sure to provide these Java environment variables when running the application:

  • GEMINI_API_KEY: Your Google Gemini API key.
  • DB_USERNAME: Your Cassandra username.
  • DB_PASSWORD: Your Cassandra password.

About

A simple Spring Boot app showing how to use Spring AI chat memory with Cassandra to store and retrieve messages in a conversation.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages