
Spring AI enables building production-grade AI-enabled apps in Java by treating LLMs as external services, powering document understanding, Q&A, image processing, and voice via OpenAI, Cloud, and Vertex AI APIs.
Walk through a code-grounded progression from basics to advanced ai, from simple chat and real-time streaming to memory, RAC, and tools, grounding responses in your data.
Install java 17 and maven locally, set up olama, download the llama model (llama 3 or 4), run olama serve, verify with curl, and prepare for spring ai maven dependencies.
Explore updated Spring AI version 2 tutorials with notes on api changes for tool calling, and access updated source code and exported Postman api collections for seamless testing.
Learn the core Spring AI chat API, set up a Maven project with springweb and olama, and master four chat patterns from simple prompts to structured output with provider-agnostic coding.
Learn prompt engineering by defining a system persona and user messages, then invoke a chat client to explain topics such as microservices and Java.
Explore chat options across different LLM providers, configure max tokens and other controls in Visual Studio Code, and see how temperature, top P, and penalties shape responses.
Learn to build and render a prompt template in Visual Studio Code, pass topic values to an LLM, and reuse templates for multi-variable prompts with placeholders.
Build a structured LLM output converter in Java using a prompt template and format mapping to return an actor and their films as a Java object.
Explore streaming in Spring AI by swapping the blocking call with stream, delivering LLM tokens to the client via SSE emitter, response body emitter, and streaming response body.
Build streaming chat with prompt templates in Spring AI 2 Fundamentals, defining a two-parameter prompt (topic and style) and enabling multi-turn conversations via server-sent events.
Explore alternative emitter types in Spring AI 2 - Fundamentals, including SSE emitter, response body emitter, and streaming response body, and compare push-based versus pull-based streaming and their use cases.
See how tool calling lets LLMs invoke external APIs to obtain real-time data, turning chatbots into agents. Explore static and dynamic tool declarations that drive the request flow.
Master static tool calling in Spring AI 2 fundamentals, configuring grok API keys and OpenAI, compare tools method versus tool names, and prepare for dynamic tool calling next lesson.
Explore dynamic tool calling by defining an API, building tools such as a random number generator and a reverse string tool, and registering them to invoke the LLM.
explore conversation memory for AI chats, enabling context across interactions and coding demos while balancing token costs with explicit history, window memory, summary memory, semantic vector memory, and knowledge graphs.
Demonstrates building a chat history pattern with an in-memory H2 database, JPA repositories, and Lombok entities to store and retrieve conversation history for LLM prompts.
Explore session based and window based memory patterns for chat histories, using conversation IDs to isolate context and summary memory to compress old messages.
Discover tool context, a powerful pattern that blends memory, tools, and context to build a personalized assistant while keeping server-side data out of the LLM.
Learn to implement a Redis-backed semantic cache for chat memory, leveraging embeddings and a vector store to speed responses. Set up cloud Redis, OLAMA, and OpenAI options.
Learn the basics of RAG, retrieval augmented generation, grounding LLM responses by retrieving relevant documents from your knowledge base through vector embeddings and semantic search, then composing grounded answers.
Artificial Intelligence is transforming software development, and Spring AI 2 brings enterprise-grade AI capabilities directly into the Spring ecosystem. This course is designed for Java developers, Spring Boot developers, and software architects who want to build modern AI-powered applications using Large Language Models (LLMs)
Starting with the fundamentals, you'll learn how to integrate leading AI models such as OpenAI, Gemini, Anthropic Claude, Ollama, and Azure OpenAI into Spring Boot applications using Spring AI 2. You'll then progress to advanced enterprise topics including vector databases, document ingestion pipelines, metadata filtering, observability, security, knowledge graphs, and multi-agent orchestration.
Path 1 – Beginner
Build a strong foundation with Spring AI.
Lesson 01: Core Chat API
Lesson 02: Streaming Responses
Lesson 03: Tool Calling
Lesson 04: Chat Memory
Lesson 05: Retrieval-Augmented Generation (RAG)
Prerequisites
Basic Java programming
Spring Boot fundamentals
REST APIs
Maven or Gradle
No prior AI experience required
What You'll Learn, with all 3 parts of this course
Build AI-powered applications using Spring AI 2
Integrate OpenAI, Gemini, Claude, Ollama, and Azure OpenAI
Create conversational AI with Chat API and Streaming
Implement Tool Calling and Function Calling
Build AI applications with persistent Chat Memory
Develop Retrieval-Augmented Generation (RAG) applications
Perform Metadata Filtering for accurate document retrieval
Build ETL pipelines for document ingestion
Process PDFs, Word documents, HTML, Markdown, and websites
Build Vision and Multimodal AI applications
Convert Speech-to-Text (STT) and Text-to-Speech (TTS)
Design Multi-Agent AI systems
Protect applications from Prompt Injection attacks
Monitor AI applications using Observability and Tracing
Build Knowledge Graph RAG solutions
Integrate external tools using Model Context Protocol (MCP)
Develop reusable AI Agent Skills
Deploy AI applications to production