#spring ai
11 articles tagged spring ai.
Spring Boot Complete Architecture Guide: From Foundation to Spring AI
A comprehensive end-to-end guide to Spring Boot architecture for experienced developers — IoC, AOP, security, data, resilience, testing, Spring AI, and production deployment — with diagrams and production-quality code throughout.
Spring AI vs LangChain4j: Which Should You Choose?
A practical, balanced comparison of Spring AI and LangChain4j for building LLM apps in Java — design philosophy, provider support, RAG, tools, and when to pick each.
How to Stream LLM Responses in Spring AI (Server-Sent Events)
Stream tokens as they're generated with Spring AI's ChatClient — a practical guide to SSE with WebFlux and Spring MVC, consuming the stream on the frontend, and handling errors in production.
Building a RAG Chatbot with Spring AI and PGVector
A step-by-step guide to a production-ready RAG chatbot in Java with Spring AI, PostgreSQL, and pgvector — ingestion, embeddings, retrieval, and grounded answers.
What's New in Modern Java — and How to Build AI With It
Modern Java (21→25) brings virtual threads, structured concurrency, records, and the FFM API. Here's what's new and how it powers AI apps.
Spring AI: From Beginner to Expert — Course Overview
A complete Spring AI course for Java teams: setup, prompting, tool calling, RAG, MCP, choosing an LLM, and production architecture.
Tool Calling with Spring AI
A hands-on guide to Spring AI tool calling — define @Tool methods, wire them into ChatClient, and let Claude safely call your Java services.
Building an MCP Server with Spring AI
Most MCP content is Python/TypeScript. Here's how to build an MCP server in Java with Spring AI — expose your services as tools any MCP client can use.
Structured Outputs with Claude: Reliable JSON Every Time
Parsing JSON out of prose is a production liability. A practical guide to reliable, schema-conformant structured output from Claude, with Spring AI examples.
Prompt Caching: Cut Your LLM Costs by 80%
A practical guide to Anthropic and OpenAI prompt caching — how it works and how to implement it in Spring AI to cut latency and API costs.
Spring AI Enterprise Integration Guide
A practical guide to building enterprise-grade AI applications with Spring AI — from chat clients and RAG pipelines to production observability.