r/SpringAIDev • • Jun 11 '26

Video Building a Spring Boot Reference Documentation Assistant with Spring AI & GPT-4

Thumbnail
youtube.com
2 Upvotes

In this tutorial, developer Dan Vega demonstrates how to build a custom Spring Boot reference documentation assistant. By leveraging Spring AI, GPT-4, and a PG Vector database, Dan shows how to create an intelligent command-line tool that provides developers with up-to-date answers from official documentation without needing to leave their terminal or rely on outdated LLM training data.

Key Takeaways:

  • Implements Retrieval Augmented Generation (RAG) to ground AI responses in real-time project documentation.

  • Uses Docker Compose to quickly spin up a PG Vector database for efficient semantic similarity searches.

  • Configures the Spring AI PDF document reader to ingest and chunk complex technical manuals.

  • Integrates Spring Shell to build a responsive, interactive command-line interface for queries.

  • Utilizes GraalVM to compile the project into a high-performance, native executable for instant startup.

  • Employs runtime hints to correctly bundle resources during native image compilation.

This project is an excellent example of using modern Java tools to solve real-world developer productivity bottlenecks. By building this assistant, you gain a portable, fast, and highly accurate reference tool that stays perfectly synced with the latest Spring Boot updates.

Check out the full video to see the implementation in action and learn how to build your own local AI assistant.


r/SpringAIDev • • Jun 16 '26

Discussion How to use AI-assisted software development without becoming a copy-paste developer?

2 Upvotes

AI coding tools are useful, but they do not automatically make someone a better developer. The real skill is knowing how to guide, review, and verify AI output.

Over the last year, I've seen many developers use AI tools primarily for code generation.

The problem?

Most AI-generated code works... until it doesn't.

The real productivity gains don't come from blindly accepting AI suggestions. They come from knowing:

What to automate
What to verify manually
When to trust AI
When to challenge AI output
How to integrate AI into your development workflow

In this practical guide, I share:

  • Common mistakes developers make with AI coding tools

  • A workflow for using AI effectively

  • Code review strategies for AI-generated code

  • Security and reliability considerations

  • Ways to improve productivity without sacrificing code quality

Article: AI-Assisted Software Development: A Practical Guide for Developers

I'm curious to know:

Has AI genuinely made you a better developer, or has it mostly just helped you write code faster?


r/SpringAIDev • • Jul 23 '26

RAG Using Spring AI

Post image
2 Upvotes

Most AI chatbots fail for one simple reason:

They answer from memory, not from your data.

That’s exactly where RAG (Retrieval-Augmented Generation) changes the game.

Instead of asking the LLM to “guess”, RAG first retrieves relevant information from your documents/database and then sends that context to the model before generating the response.

A simplified RAG flow looks like this:
1️⃣ User asks a question
2️⃣ Application converts the question into embeddings
3️⃣ Similar documents are searched from a Vector Database
4️⃣ Relevant chunks are added to the prompt
5️⃣ LLM generates a grounded response

This solves some major real-world problems:
✔️ Reduces hallucinations
✔️ Gives responses based on your own enterprise data
✔️ Keeps AI responses updated without retraining the model
✔️ Makes AI applications actually useful for businesses

Read the full story here: 👇
https://heapsteep.com/rag-using-spring-ai


r/SpringAIDev • • Jul 06 '26

Hello, Spring AI Dev

3 Upvotes

Just found out about this sub reddit and wanted to stop by and say hello. Lot's of great discussions happening here and I hope to be a part of some of them.


r/SpringAIDev • • Aug 08 '26

My hands-on Spring AI course is now live on JetBrains Academy

3 Upvotes

Hi everyone!

My Spring AI course is now available on JetBrains Academy.

The course is designed around practical, real-world tasks completed directly in IntelliJ IDEA using the JetBrains Academy plugin. The project, dependencies, and configuration are already prepared, so you can focus on learning Spring AI and writing code instead of spending time on setup.

I honestly wish I’d had this kind of learning experience when I was starting out: clear tasks, a ready-to-use project, and immediate feedback—all inside the same IDE used for professional development.

I’d be glad to hear your feedback, especially which Spring AI topics or practical use cases you’d like to see covered next.

Course link: https://academy.jetbrains.com/course/32882


r/SpringAIDev • • May 17 '26

Spring AI: Seamlessly Integrating AI into Your Enterprise Java Applications by Christian Tzolov

3 Upvotes

At Devoxx, Spring AI leads Mark Pollack and Christian Tzolov explore how to integrate generative AI into enterprise Java applications. They demonstrate how to bridge corporate data and internal APIs with AI models using familiar Spring architectural patterns, enabling developers to build robust, intelligent systems without straying from their established ecosystem.

Key Takeaways:

  • Portable framework design for switching between AI models and vector databases.

  • Implementation of real-time function calling to execute core business logic.

  • Use of RAG (Retrieval-Augmented Generation) to ground AI in private data.

  • Effective prompt engineering using system messages for behavioral control.

  • Observability and tracing for debugging and performance monitoring.

  • Best practices for model evaluation and factual verification.

This session provides a clear path for enterprise developers to move beyond simple prototypes into production-grade AI. With Milestone 3 available, it is the perfect time to start building.

Watch the full session here 👇

https://www.youtube.com/watch?v=kfRyY0wsZHM


r/SpringAIDev • • Jul 02 '26

Video Getting Started with GPT-4o in Spring AI with Chat and Vision Capabilities

Thumbnail
youtube.com
3 Upvotes

Dan Vega demonstrates how to integrate OpenAI's GPT-4o model into Spring applications using the Spring AI framework. This guide focuses on leveraging both text and vision capabilities for modern AI-powered development.

Highlights & Key Takeaways

  • GPT-4o Advantages: Benefit from 50% lower costs, 2x faster latency, and 5x higher rate limits compared to previous models.

  • Project Setup: Utilize the Spring AI 1.0.0-SNAPSHOT version to access the latest multimodal features.

  • Chat Implementation: Use the ChatClient API with PromptTemplates for structured interactions.

  • Vision Capabilities: Pass images via UserMessage and Media objects to allow the LLM to interpret visual data.

  • Practical Use Cases: Perform image analysis, such as scene description or extracting code snippets from screenshots.

  • API Integration: Secure sensitive keys via environment variables rather than hardcoding.

GPT-4o in Spring AI significantly lowers the barrier for building robust, multimodal Java applications.

👉 Watch the full video to dive deeper into the implementation.


r/SpringAIDev • • May 23 '26

Spring AI 1.0.8, 1.1.7, 2.0.0-M7 Available Now

Thumbnail
spring.io
3 Upvotes

New versions of Spring AI are available. Check the version-specific highlights:

Spring AI 1.0.8

  • Fixed RedisVectorStore#doDelete silently truncating deletes to the first 10 messages: The RedisVectorStore#doDelete method was deleting only the first 10 documents that matched the filter it received. This bug was fixed.

Spring AI 1.1.7

  • Fixed Ollama compatibility with GraalVM native images

  • Fixed OpenAiChatModel dropping streaming chunks due to an internal switchMap when using buffered concatMap

Spring AI 2.0.0-M7

  • MCP transport changes: SSE transports are now deprecated; Streamable HTTP is the new default server protocol

  • ToolCallAdvisor becomes the default and standard way tool calls are handled in the advisor chain

  • New ToolSpec fluent API for defining tools programmatically

You can find more details in the official Spring blog, including the full release notes for each version, as well as details about included PRs, issues, and contributors.


r/SpringAIDev • • Jun 09 '26

Project ​Built OxyJen, a Java AI Orchestrator designed to act as a deterministic kernel inside Spring apps(Need feedback)

3 Upvotes

Hi everyone,

Building complex, multi-step agent workflows inside Spring Boot can quickly turn into a messy web of imperative code and try-catch blocks.

To fix this, I've been building OxyJen, an open-source Java framework built to bring strict determinism to AI workflows.

Instead of replacing your stack, OxyJen acts as a specialized AI kernel inside your Spring apps.

You simply register your OxyJen Graph as a standard @Bean. Spring handles the web traffic and DI, while passing the complex AI pipeline execution to the OxyJen kernel.

What the kernel brings to your Spring app:

- Strict Type Safety: Forces LLM outputs to map directly to your Java Records/POJOs, with built-in self-correction if the formatting fails.

- Predictable Graph Routing: Replaces messy string-chaining with an explicit Directed Acyclic Graph (DAG) using branching and routing nodes.

- Visual Error Fallbacks (FailureEdge): If an API hits a rate limit or goes down, the kernel automatically routes the context to a backup model without crashing your Spring thread pool.

- Native Concurrency: Handles parallel AI tasks and multi-source retrievals asynchronously out of the box.

We just hit v0.5. The architecture is highly modular, so wrapping your Spring-managed database clients or REST utilities into OxyJen nodes is incredibly straightforward.

Would love to get your honest feedback on the architecture and API design!

GitHub: https://github.com/11divyansh/OxyJen

Docs: https://github.com/11divyansh/OxyJen/blob/main/docs/v0.5.md

Thanks in advance!


r/SpringAIDev • • May 31 '26

Memory And Context Management In Spring AI

4 Upvotes

✒️ Excited to publish the Part 3 of my Spring AI series:
Memory And Context Management In Spring AI
In this blog, I have explained one of the most important concepts in AI applications — how AI remembers conversations and maintains context across interactions.

In this blog, you will learn:
✔️ What is Memory in AI applications
✔️ What is Context Management
✔️ How Spring AI handles chat memory
✔️ Different types of memory management approaches

This blog is written in a simple and quick-to-understand format, without going through unnecessary theory.
Read the blog here:

https://heapsteep.com/memory-and-context-management-in-spring-ai

More blogs are coming soon 🕔


r/SpringAIDev • • Sep 14 '26

Tutorial Spring AI Recipe: Streamable HTTP MCP Server

Thumbnail
thetalkingapp.medium.com
4 Upvotes

Craig Walls' Spring AI recipe shows how to move an MCP server from STDIO to Streamable HTTP — the transport that makes tools remotely accessible and production-ready.

Highlights & Key Takeaways

  • STDIO suits local subprocess integrations; Streamable HTTP fits remote, multi-agent, production deployments.

  • It replaces the deprecated SSE transport in the MCP spec.

  • Swap in spring-boot-starter-webmvc + spring-ai-starter-mcp-server-webmvc — that choice alone puts the server on HTTP.

  • Tool code doesn't change: @McpTool and @McpToolParam stay identical.

  • Spring AI 2.0.0-M7+ defaults to streamable; older milestones need spring.ai.mcp.server.protocol=streamable.

  • Set server.port=3000 (MCP convention), then test at http://127.0.0.1:3000/mcp with MCP Inspector or MCPJam.

  • No log suppression or banner disabling needed — HTTP frees up stdout.

The transport is a deployment decision, not an application-code one: your tool definitions stay portable while reach changes completely.

👉 Read the full recipe for the complete config and testing walkthrough.


r/SpringAIDev • • Aug 13 '26

Discussion I created a privacy guardrail library for Spring AI — looking for feedback on streaming with pluggable PII analyzers

4 Upvotes

Hi, I’m building Spring AI Privacy Guardrails, an open-source library for enforcing privacy boundaries around models, RAG, tools, MCP, and outputs.

GitHub: https://github.com/ultramancode/spring-ai-privacy-guardrails

One design problem I’ve been thinking about is streaming output protection.

Some applications also want a final privacy check on application-facing output, since sensitive data can still appear in model- or tool-generated responses.

Right now, when output protection is enabled, the library buffers the complete response before releasing it to the application.

This provides a strong guarantee: PII can still be detected and protected even when a sensitive value is split across multiple chunks.

The trade-off is that this is no longer true incremental streaming, and the application has to wait longer before receiving output.

A bounded rolling window could preserve incremental streaming for analyzers that have a known upper bound on how much context they need — for example, some bounded pattern-based detectors.

But NER, context-aware detection, complex patterns, or arbitrary custom analyzers may not have such a bound.

So I’m currently considering three approaches:

  1. Strict buffering Buffer the complete response and protect it before releasing anything to the application.

  2. Capability-gated streaming Allow incremental streaming only when the active analyzer can declare a safe maximum lookback or context requirement. Otherwise, fall back to full buffering.

  3. Best-effort streaming Use a configurable rolling window and explicitly document that some PII spanning multiple chunks may escape detection.

For a Spring AI application, which behavior would you expect from a privacy library?

I’m not attached to these three options — if there’s a better streaming/privacy model I’m missing, I’d really appreciate the feedback.


r/SpringAIDev • • Aug 17 '26

Tutorial How do you actually test an LLM response in Spring Boot Using Spring AI?

4 Upvotes

Spring AI's RelevancyEvaluator and FactCheckingEvaluator let a model judge a model, so your JUnit tests check quality, not exact text. Full code walkthrough inside.

Quick one for anyone building RAG apps in Spring Boot: this tutorial shows exactly how to catch hallucinations before they ship, using Spring AI's built-in evaluators. Includes the one mistake almost everyone makes with the request order. 


r/SpringAIDev • • Jun 22 '26

Article Spring AI Recipe: Reusing Agent Behavior with Skills Jars

Thumbnail thetalkingapp.medium.com
5 Upvotes

Craig Walls introduces SkillsJars — a Spring AI pattern for distributing reusable agent behaviors as JAR dependencies, eliminating the need to hand-write skill files for every project.

Highlights & Key Takeaways

  • SkillsJars are packaged agent skills distributed as JARs, each containing one or more SKILL.md files under /META-INF/skills

  • Add agent behavior the same way you add a library — via a Gradle/Maven dependency

  • Use spring-ai-agent-utils + a SkillsJar to wire skills into ChatClient with minimal config

  • Skills define how an agent behaves; tools define what it can do — both layers are required

  • Skill discovery is configured via a single property: agent.skills.paths

  • SkillsJars eliminate cross-project duplication and make behavior declarative and composable

  • Think in layers: Tools → Skills → SkillsJars for scalable agent architecture

SkillsJars bring true modularity to Spring AI agents, letting teams share and reuse intelligent behavior the same way they share code.

👉 Read the full article for the complete implementation walkthrough and code samples.


r/SpringAIDev • • Jul 02 '26

Tutorial Build Your First MCP Server with Spring Boot 4.1 and Spring AI 2.0

5 Upvotes

Spring AI 2.0 just went GA and it ships the cleanest MCP server setup I've seen in Java.

Two annotations. One yml property. Your entire Spring Boot service becomes an AI tool.

This is exactly how Claude, Copilot, and other AI clients plug into your Java backend.

No AI API key needed for the server side. Full working code with Java 21.

Perfect for intermediate Spring Boot devs exploring AI integration!

Here is the complete tutorial: Build Your First MCP Server with Spring Boot 4.1 and Spring AI 2.0


r/SpringAIDev • • Jun 27 '26

Are you using Spring AI in real production projects in your companies?

6 Upvotes

I just started my journey on Spring AI. Just wanted to know if this is already being used in real prod projects or it is still in the early adoption pase. Thanks!


r/SpringAIDev • • Jul 12 '26

Need advice on improving my Spring AI + RAG chatbot for engineering documents

6 Upvotes

Hi everyone,

I'm a Java Spring Boot developer, and this is my first AI project. I'm building a chatbot using Spring AI + Ollama + RAG, and I'm learning as I go.

The chatbot should answer questions from uploaded PDF, Word, Excel, CAD, and AutoCAD documents. While it's working, I'm facing a few challenges:

Uploading and indexing large documents takes a long time.

Retrieval accuracy isn't consistent.

Sometimes the chatbot gives incorrect answers even though the information exists in the uploaded files.

CAD/AutoCAD files are the biggest challenge.

I'd love to hear from developers who have built similar applications.

Some questions I have:

Which free LLMs work best with Spring AI + RAG? (Qwen 3, Gemma 3, DeepSeek, Llama 3.1, Mistral, etc.)

Which embedding model gives the best retrieval accuracy?

What techniques have improved your RAG performance? (chunking, hybrid search, reranking, metadata filtering, query rewriting, etc.)

What's the best way to process DWG/DXF/AutoCAD files in a RAG application?

How do you reduce document parsing and indexing time for large engineering documents?

Are there any open-source Spring AI RAG projects or GitHub repositories that you recommend?

My goal is to build a reliable chatbot for engineering documents with fast responses and high accuracy.

Any advice, resources, or best practices would be greatly appreciated.

Thank you!


r/SpringAIDev • • Jul 03 '26

How is Spring AI being used in production across the software industry?

7 Upvotes

With Spring AI maturing rapidly, I'm curious about how organizations are actually using it in production beyond demos and proofs of concept.

I'd love to hear from teams that have deployed Spring AI in real-world applications.

  • How has Spring AI performed in production in terms of reliability, scalability, latency, and developer productivity?

  • What types of AI applications are you building with it?

  • What advantages have you seen compared to Python-based frameworks such as LangChain?

  • Are there any limitations or areas where LangChain still has a significant edge?

  • Would you recommend Spring AI for enterprise Java applications, or do you still prefer Python for GenAI workloads?

I'm particularly interested in real-world experiences, production lessons learned, performance at scale, and reasons behind technology choices rather than tutorial or proof-of-concept examples.


r/SpringAIDev • • Aug 16 '26

Discussion As java dev , how to get relevant with AI, is spring AI worth it

7 Upvotes

Currently I am a student, my projects are In Java Fullstack

Right now I don't even know what RAG or MCP is , and I think I should have some hands on experience of it, i should be at least aware of it, because it's a trendy topic , not these two terms only, but many things

Now should I start python, for getting into it, is there any need , or I can explore Spring AI


r/SpringAIDev • • Jul 07 '26

Tutorial How to Build RAG with Spring AI and pgvector

7 Upvotes

If you have been wondering how to make an LLM answer questions from your own documents without touching Python, this one is for you.

A full walkthrough on building a RAG application with Spring AI and PostgreSQL pgvector.
Covers ingestion, chunking, PgVectorStore configuration, and the QuestionAnswerAdvisor pattern, with working Java code.

How to Build RAG with Spring AI and pgvector

Your LLM does not know about last week's product update or the PDF sitting in your document store. That is not a model problem, it is a context problem, and RAG solves it.


r/SpringAIDev • • Aug 15 '26

Video The Spring AI Ecosystem in 2026: From Foundations to Agents @ Spring I/O 2026

Thumbnail
youtube.com
7 Upvotes

Really good overview of Spring AI basics, core concepts, and where the ecosystem is heading. Definitely recommend watching it. I really enjoyed it!


r/SpringAIDev • • Aug 28 '26

Article Spring AI Recipe: Invoking A2A Sub-Agents with TaskTool

Thumbnail
thetalkingapp.medium.com
8 Upvotes

In this recipe, Craig Walls demonstrates how to build multi-agent systems by enabling Spring AI agents to delegate tasks to specialized A2A sub-agents.

Highlights & Key Takeaways

  • TaskTool simplifies delegation by registering sub-agents as callable tools within the ChatClient.

  • Bypasses SDK overhead by allowing agents to natively invoke peers during standard execution loops.

  • Requires specific dependencies: spring-ai-agent-utils and its A2A extension.

  • Uses builder customization to connect the remote A2A server via ChatClientBuilderCustomizer.

  • Relies on built-in resolvers to dynamically discover agent details and handle runtime invocations.

Treating peer agents as standard tools enables developers to transition easily from isolated AI instances to collaborative, goal-oriented multi-agent architectures.

👉 Explore the full source code repository for implementation details.


r/SpringAIDev • • Jun 06 '26

Bootiful Spring AI by Josh Long / James Ward @ Spring I/O 2026

Thumbnail
youtube.com
2 Upvotes

At Spring I/O 2026, Josh Long and James Ward demonstrated how to build production-ready, AI-integrated applications using Spring AI. By developing a real-world dog adoption service, the pair demystified modern AI engineering in the enterprise.

Key Takeaways:

  • Leveraging AWS Bedrock for flexible, multi-model support.

  • Guiding agent behavior effectively through precise system prompts.

  • Using ""skills"" as a wiki to inject prioritized knowledge into agents.

  • Implementing memory advisors to maintain conversational context.

  • Enabling data-grounded AI via RAG with Postgres and PGVector.

  • Adopting the Model Context Protocol for modular tool integration.

  • Securing AI workflows using OAuth and OIDC standards.

  • Ensuring production observability with real-time metric monitoring.

Building enterprise-grade AI requires deep integration with existing business logic. Java and Spring developers have a unique advantage in creating robust, secure, and context-aware systems that actually work in production environments.

Check out the full talk to master these AI engineering techniques!


r/SpringAIDev • • Sep 16 '26

Video Real-World AI Patterns with Spring AI and Vaadin by Marcus Hellberg / Thomas Vitale @ Spring I/O 25

Thumbnail
youtube.com
5 Upvotes

Marcus Hellberg and Thomas Vitale demonstrate how to transition from AI experimentation to robust production deployments using Spring AI and Vaadin.

Highlights & Key Takeaways

  • Use Advisors as interceptors for tasks like chat memory, guardrails, and RAG context injection.

  • Implement input and output guardrails to prevent prompt injection and ensure data safety.

  • Leverage Retrieval Augmented Generation (RAG) to ground models in proprietary data using vector stores like PostgreSQL.

  • Enable multimodality by processing images and documents alongside textual prompts.

  • Utilize tool calling to grant LLMs access to databases and external APIs for agentic behavior.

  • Employ structured outputs to map unstructured LLM responses directly into Java objects.

Engineering reliable AI requires treating models as external services with strict validation.

👉 Watch the full video to dive deeper into the implementation.


r/SpringAIDev • • May 06 '26

Video Java Devs: Stop Using Python for AI! (a Spring AI Solution)

Thumbnail
youtube.com
4 Upvotes

In this presentation at InfoQ, we learn with Loiane Groner that with SpringAI, we can easily power our Java applications with AI while we stay in our familiar Spring stack.