
In this lecture, we discover how the rise of Generative AI created a new era of AI Engineering, and why Spring AI enables Java developers to build intelligent applications using LLMs without leaving the Java and Spring ecosystem.
In this video, you will understand why AI-powered applications matter for business, what you need before starting the course, and the complete roadmap from Java/Spring Boot developer to building practical LLM-powered applications.
Understand with examples what are Large Language Models (LLMs), how they work?, and why they generate different responses, we will also discuss how concepts like next-token prediction, tokens, and context shape modern AI applications.
In this lecture, you will learn what tokens are, how tokenization works, what is context window, how context window limits how much information a model can remember during a conversation and why we say LLMs by default stateless.
In this lecture, you will learn how to choose the right LLM for your application by comparing models based on quality, cost, latency, context window, privacy, local vs hosted options, and project requirements.
In this short summary, we will quickly review the key ideas from this section.
In this lecture, you will understand why Spring AI is useful even though AI providers already expose REST APIs and SDKs, and how Spring AI brings a clean Spring Boot programming model for building real AI applications with provider abstraction, ChatClient, prompt templates, model options, response metadata, memory, RAG, evaluation, and tool calling.
In this lecture, we go one level deeper after making our first Spring AI call with OpenAI. You will see how ChatClient abstracts the request and response flow, how Spring Boot auto-configuration creates the OpenAI ChatModel, and what happens internally when your application sends a prompt and receives a response. We will inspect the OpenAIAutoConfiguration class, understand the relationship between ChatClient, request specifications, response specifications, and the underlying model call, so the next lectures with Ollama and different model providers become much easier to understand.
Understand briefly what happens behind the scenes when Spring AI sends a prompt to OpenAI, including the request flow, model response, and returned metadata.
Run the same Spring AI application with a local Ollama model and see how easily you can switch from a hosted provider to local inference.
Explore the Spring AI ChatClient fluent API step by step and understand how prompts, options, calls, responses, and returned content are chained together.
In this lecture, we solve the problem of working with more than one AI model in the same Spring Boot application. You will see why the default Spring AI auto-configuration is not enough when we need multiple models, and how to manually configure separate ChatClient instances for different providers. We then build a complete practical example where OpenAI is used to summarize a document, while a local Ollama Llama model is used to review the generated answer. By the end of the lecture, you will understand how to combine cloud and local models in one application, and design a more flexible AI architecture with Spring AI.
Understand why production AI applications need more than a simple prompt, and how instructions, context, constraints, and application data shape response quality.
Learn how different message roles organize an AI conversation and control instructions, user input, previous responses, and tool interactions.
Explore the main prompting techniques and learn when to use direct instructions, examples, or smaller subtasks to improve model consistency.
Build reusable prompt templates and inject dynamic application values instead of hardcoding long prompts inside your Java code.
Learn how to select, structure, and provide relevant context without overwhelming the model with unnecessary or outdated information.
Convert free-form LLM responses into predictable Java objects that can be safely used by your Spring Boot application.
Understand what is prompt injection and practical techniques for separating trusted instructions from untrusted user content.
Learn how Spring AI Advisors intercept and enrich ChatClient requests, creating reusable pipelines for logging, context, memory, and other cross-cutting concerns.
Review the complete request-design mindset, from message roles and prompting techniques to structured output, defensive prompting, and Advisors.
Understand why traditional exact assertions are often unsuitable for generative AI, where multiple responses can use different wording while remaining equally valid.
This episode introduces the shift from deterministic software testing to probabilistic AI evaluation using a meeting-analysis application. You will learn why fluent output is not necessarily correct, why one successful model call proves very little, and how exact assertions can still be used for structured facts such as owners, deadlines, and required fields.
Use Java assertions to validate structured AI responses, required fields, and known facts without relying on another LLM.
Use Spring AI’s RelevancyEvaluator and FactCheckingEvaluator to verify that generated responses answer the task and remain supported by the original transcript.
Generative AI is changing the way modern software is built, but many Java and Spring Boot developers still feel that AI belongs mainly to Python, Machine Learning, or Data Science teams.
This course is designed to change that.
In this course, you will learn how to build practical AI-powered backend applications using Java, Spring Boot, and Spring AI. You do not need prior experience with Machine Learning, Python, or complex math. The goal is to help you use your existing backend engineering skills and extend them into the world of AI Engineering.
We will start from the fundamentals: what LLMs are, how they work, what tokens and context windows mean, and how to choose the right model for your application. Then we will move into real Spring AI implementation, where you will connect your Spring Boot application to AI models such as OpenAI and local models through Ollama.
You will learn how to use Spring AI concepts like ChatModel, ChatClient, prompts, system messages, prompt templates, chat options, response metadata, and structured outputs. You will also understand how to design prompts that are reliable, reusable, and suitable for production applications.
After that, we will explore more advanced AI application patterns such as Retrieval-Augmented Generation, conversational memory, and tool calling. These techniques allow your AI application to answer from your own documents, remember conversation context, and connect to APIs, databases, and business logic.
This course is built for backend developers who want to build real AI features, not just toy demos. By the end of the course, you will understand how to think like an AI Engineer while still working inside the Java and Spring ecosystem you already know.