
Understand what memory means in AI systems and why LLMs do not inherently remember users.
Learn why replaying chat history is not enough for building memory-aware AI agents.
Explore the four logical memory layers used in modern AI assistants.
Introduce the AI travel planner project used throughout the course.
Set up Spring Boot, Spring AI, PostgreSQL, and build a minimal AI chat endpoint.
Understand why stateless chat applications fail and why conversations are required.
Create conversation and chat message tables for L1 working memory.
Build conversation-aware chat APIs using conversationId.
Create APIs to list conversations and fetch stored messages.
Connect backend APIs with a lightweight browser UI for testing.
Show how the AI loses memory across new conversations.
Demonstrate how context limits cause memory loss in long chats.
Analyze failures and identify the need for layered memory.
Understand why working memory alone is not enough for personalization.
Create the persona schema, entity, and repository structure.
Extract stable user facts using the LLM and store them in PostgreSQL.
Inject persona memory into prompts using Spring AI Advisors.
Learn why past conversation summaries are required for AI memory.
Generate reusable summaries and store them with embeddings.
Retrieve relevant summaries using pgvector similarity search.
Understand how AI systems learn reusable preferences from behavior.
Create the semantic memory schema and storage structure.
Extract preference statements and store them with embeddings.
Retrieve learned preferences and apply them automatically.
Move memory updates out of the request flow using async events.
Build a centralized prompt assembly pipeline using multiple advisors.
Most AI applications do not truly remember users.
They simply replay chat history.
In this course, you will learn how to design and implement real memory systems for AI agents using Java, Spring AI, PostgreSQL, and pgvector.
Using a practical AI Travel Planner project, you will build a layered memory architecture that enables AI assistants to remember users correctly across conversations.
This is a backend engineering focused course designed for developers who want to move beyond basic chat applications and build production-style AI systems.
What You’ll Build
Working memory using conversation history
Persona memory for persistent user facts
Episodic memory using conversation summaries
Semantic memory using learned preferences
Vector similarity search with pgvector
Async memory processing pipelines
Centralized prompt assembly using Spring AI Advisors
What You’ll Learn
Why chat history is not real AI memory
How modern AI memory systems are structured
How to design layered memory architectures
How embeddings and vector search work in practice
How to retrieve relevant memory dynamically
How to build scalable AI backend pipelines
How to personalize AI behavior across conversations
Technologies Used
Java
Spring Boot
Spring AI
PostgreSQL
pgvector
By the end of this course, you will have a complete understanding of how real AI memory systems are designed and implemented in modern backend applications.