Spring AI is an application framework for AI engineering on the JVM. It lets you talk to large language models with the same fluent, dependency-injected style you already use for the web and the database.
This is a beginner’s tour. By the end you will know what Spring AI is and how to make your first model call, then connect RAG and memory from a plain Spring Boot app.
Table of contents
What Spring AI is
Your first call: the ChatClient
Setting up Spring AI
Useful building blocks in Spring AI
System prompts
Advisors
Vector stores and embeddings
Using RAG with Spring AI
Tool calling
Structured output
Model Context Protocol (MCP)
The supporting cast
Where to go next with Spring AI
What Spring AI is
Spring AI is, in the project’s own words, “an application framework for AI engineering. Its goal is to apply to the AI domain Spring ecosystem design principles such as portability and modular design.”
That tells you what to expect. Spring AI is not a new model.…