Integrating AI into Your Java Applications: Spring AI Deep Dive with RAG
summary
Spring AI shows concrete patterns and code: use ChatClient and Advisors to intercept requests, enforce JSON schemas, keep rolling-window chat memory, and run Recursive Advisors for multi-step loops; add RAG with an in-memory vector store and tool calling (weather/tool-example) and a tool search tool to cut tokens; build agent skills and subagents (Airbnb demo) with AskUserQuestion and Todo state to avoid “lost in the middle”; run a judge model that flags nonsense (caught −125°C) and wire MCP servers for sampling, logging, and poem generation.
AI-written summary · about
chapters (27)
- 0:00Introduction and speaker background
- 0:49Generative AI fundamentals and black box model
- 3:37Hello World Spring AI chat client demo
- 5:00Context engineering and input optimization
- 6:04Structured output with Spring AI
- 7:08Chat memory and state retention
- 8:54Advisors and recursive advisors explained
- 11:00Prompt stuffing and dynamic context
- 12:26Retrieval augmented generation basics
- 15:37Guard rails and input/output control
- 18:28Tool calling and agentic behavior
- 23:00Chaining advisors and memory integration
- 24:03MCP servers and tool management
- 26:08Tool search rule and progressive disclosure
- 31:11Agentic systems and workflow patterns
- 35:47Evaluator pattern with LLM as judge
- 38:19Demo of evaluator advisor in action
- 41:51Break and Q&A opportunity
- 48:23Explainable agents and augmented tools
- 52:34Agent skills and progressive disclosure
- 59:35Loss in the middle pattern
- 1:02:49User question pattern
- 1:05:29Sub agents and parallel execution
- 1:13:38AI protocols overview MCP A2A ACP
- 1:22:25Model Context Protocol deep dive
- 1:33:43Agent to agent protocol demo
- 1:38:24Summary and closing remarks
