{"id":4056,"date":"2026-12-01T11:25:13","date_gmt":"2026-12-01T16:25:13","guid":{"rendered":"https:\/\/www.mymiller.name\/wordpress\/?p=4056"},"modified":"2026-11-20T23:43:36","modified_gmt":"2026-11-21T04:43:36","slug":"spring-ai-2-1-decision-model-api-routing-rag-reranking-guardrails","status":"publish","type":"post","link":"https:\/\/www.mymiller.name\/wordpress\/spring_ai\/spring-ai-2-1-decision-model-api-routing-rag-reranking-guardrails\/","title":{"rendered":"Beyond Free-Text Prompts: Deterministic Routing, RAG Reranking, and Guardrails with Spring AI 2.1\u2019s DecisionModel API"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Every developer who has shipped a production LLM feature in Java has written the same fragile hack: ask a full conversational <code>ChatModel<\/code> to <em>&#8220;Respond ONLY with YES or NO, do not explain,&#8221;<\/em> wrap the response in <code>.trim().toUpperCase()<\/code>, and cross your fingers that the model does not reply <code>\"Sure! Here is the answer: YES.\"<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using a generative chat model for bounded classification, routing, guardrails, or RAG document screening is slow, expensive, and statistically uncalibrated. Even when the model outputs valid JSON, you get a bare string with no confidence probability\u2014so you cannot distinguish a 51% guess from a 99% certainty.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the <strong><code>DecisionModel<\/code> API<\/strong> in <strong>Spring AI 2.1<\/strong> (landed in <code>2.1.0-RC2<\/code>). Instead of coaxing free-form text out of a chat completion endpoint, <code>DecisionModel<\/code> evaluates a closed set of outcomes\u2014boolean, multiple-choice, or ordinal scale\u2014and returns <strong>calibrated probabilities<\/strong> you can threshold directly in Java. Better still, it runs locally at zero API cost using <strong>Ollama&#8217;s <code>d1-omni:600m<\/code><\/strong> model and plugs straight into Spring AI&#8217;s Modular RAG pipeline and tool-search advisor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Building on our earlier guides to <a href=\"https:\/\/www.mymiller.name\/wordpress\/\">Mastering RAG with Spring AI<\/a> and running Ollama locally with Docker Compose, let&#8217;s build a complete Spring Boot 4.2 + Spring AI 2.1 decision pipeline.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. The <code>DecisionModel<\/code> Contract and Three Question Primitives<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Spring AI 2.1 models decisions with the same clean symmetry we already know from <code>ChatModel<\/code> and <code>EmbeddingModel<\/code>: you construct a <code>DecisionPrompt<\/code>, call <code>decisionModel.call(prompt)<\/code>, and inspect a typed <code>DecisionResponse<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Every <code>DecisionPrompt<\/code> carries input data (plain text, structured fields, or a conversation) paired with one or more named questions drawn from three primitives:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Question Type<\/th><th>What It Returns<\/th><th>Best Production Use Cases<\/th><\/tr><\/thead><tbody><tr><td><strong><code>YesNoQuestion<\/code><\/strong><\/td><td>Calibrated probability of <code>yes<\/code>, checked with <code>isYes(double threshold)<\/code><\/td><td>Prompt-injection guardrails, policy checks, defect detection, tool applicability<\/td><\/tr><tr><td><strong><code>ChoiceQuestion<\/code><\/strong><\/td><td>Winning option (<code>getValue()<\/code>) plus per-option probability distribution<\/td><td>Intent routing, support ticket triage, agent handoff selection<\/td><\/tr><tr><td><strong><code>ScoreQuestion<\/code><\/strong><\/td><td>Nearest level on an ordered ordinal scale (<code>getNearestLevel()<\/code>)<\/td><td>Customer sentiment, rubric grading, severity\/priority scoring<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Out of the box, Spring AI 2.1 ships three provider implementations:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Implementation<\/th><th>Artifact<\/th><th>Default Model \/ Protocol<\/th><th>Best Fit<\/th><\/tr><\/thead><tbody><tr><td><strong><code>OpenAiDecisionModel<\/code><\/strong><\/td><td><code>spring-ai-starter-model-openai<\/code><\/td><td><code>gpt-6-luna<\/code> (OpenAI Decisions API)<\/td><td>Cloud-managed high-accuracy classification<\/td><\/tr><tr><td><strong><code>OllamaDecisionModel<\/code><\/strong><\/td><td><code>spring-ai-starter-model-ollama<\/code><\/td><td><strong><code>d1-omni:600m<\/code><\/strong> (<code>\/v1\/systemone<\/code>, Ollama <code>0.40.4+<\/code>)<\/td><td>Fast, private, zero-API-cost local routing &amp; guardrails<\/td><\/tr><tr><td><strong><code>SystemOneDecisionModel<\/code><\/strong><\/td><td><code>spring-ai-systemone<\/code><\/td><td>TypeSafe Java SDK <code>0.4.0<\/code> (<code>jev-latest<\/code> \/ <code>laya-serve<\/code>)<\/td><td>Self-hosted dedicated decision inference clusters<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Every <code>DecisionModel<\/code> call automatically emits Micrometer observations under the <code>decision<\/code> operation name via <code>spring-ai-autoconfigure-model-decision-observation<\/code>, giving you latency and token visibility in Prometheus or OpenTelemetry right alongside your chat models.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Gradle and <code>application.yml<\/code> Setup (Local Ollama <code>d1-omni:600m<\/code>)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using <code>OllamaDecisionModel<\/code> with the compact <code>d1-omni:600m<\/code> model keeps routing latency low and avoids paying frontier LLM rates just to classify incoming requests. Note that Ollama <code>0.40.4+<\/code> is recommended, and Spring AI can pull the model automatically at startup if it is missing.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ build.gradle.kts\next&#91;\"springAiVersion\"] = \"2.1.0-RC2\"\n\ndependencyManagement {\n    imports {\n        mavenBom(\"org.springframework.ai:spring-ai-bom:${property(\"springAiVersion\")}\")\n    }\n}\n\ndependencies {\n    implementation(\"org.springframework.boot:spring-boot-starter-webmvc\")\n    implementation(\"org.springframework.ai:spring-ai-starter-model-ollama\")\n    implementation(\"org.springframework.ai:spring-ai-starter-vector-store-pgvector\")\n    implementation(\"org.springframework.ai:spring-ai-starter-tool-search-advisor\")\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># application.yml\nspring:\n  ai:\n    model:\n      decision: ollama\n    ollama:\n      base-url: http:\/\/localhost:11434\n      init:\n        pull-model-strategy: when_missing\n        decision:\n          include: true\n      decision:\n        options:\n          model: d1-omni:600m\n    chat:\n      client:\n        tool-search-advisor:\n          tool-index-type: decision\n          decision:\n            applicability-threshold: 0.75\n            minimum-relevance: 0.60<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Deterministic Routing and Thresholded Decisions in Java<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Because a single <code>DecisionPrompt<\/code> accepts multiple named questions, you can evaluate defect status, routing topic, and customer sentiment in one round-trip\u2014and only automate high-risk actions when the model clears your confidence bar (for example, <code>0.90<\/code>).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.ghostprogrammer.ai.decision;\n\nimport org.springframework.ai.decision.ChoiceQuestion;\nimport org.springframework.ai.decision.DecisionModel;\nimport org.springframework.ai.decision.DecisionPrompt;\nimport org.springframework.ai.decision.DecisionResponse;\nimport org.springframework.ai.decision.ScoreQuestion;\nimport org.springframework.ai.decision.YesNoQuestion;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class SupportTriageService {\n\n    private final DecisionModel decisionModel;\n\n    public SupportTriageService(DecisionModel decisionModel) {\n        this.decisionModel = decisionModel;\n    }\n\n    public TriageDecision classifyTicket(String customerMessage) {\n        DecisionResponse response = decisionModel.call(DecisionPrompt.builder()\n                .text(customerMessage)\n                .question(\"defect\", YesNoQuestion.builder()\n                        .text(\"Does the customer report a hardware or product defect?\")\n                        .whenYes(\"Part of the received item does not work as expected\")\n                        .whenNo(\"The item works, or the message is about shipping, billing, or general questions\")\n                        .build())\n                .question(\"topic\", ChoiceQuestion.builder()\n                        .text(\"Which support queue owns this request?\")\n                        .option(\"delivery\", \"Tracking, delays, or missing packages\")\n                        .option(\"product\", \"Damaged, broken, or defective items\")\n                        .option(\"account\", \"Login, billing, address, or payment details\")\n                        .option(\"other\", \"Anything that does not match the queues above\")\n                        .build())\n                .question(\"satisfaction\", ScoreQuestion.of(\n                        \"How satisfied is the customer?\",\n                        \"unhappy\", \"neutral\", \"happy\"))\n                .build());\n\n        \/\/ Only trigger automated RMA workflows when confidence &gt;= 90%\n        boolean autoApproveRma = response.getYesNo(\"defect\").isYes(0.90);\n        String targetQueue = response.getChoice(\"topic\").getValue();\n        int sentimentLevel = response.getScore(\"satisfaction\").getNearestLevel();\n\n        return new TriageDecision(autoApproveRma, targetQueue, sentimentLevel);\n    }\n\n    public record TriageDecision(boolean autoApproveRma, String queue, int sentimentLevel) {}\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Notice how clean that contract is. There is no JSON schema prompt engineering, no fallback <code>try\/catch<\/code> for malformed Markdown fences, and no ambiguity about whether <code>\"maybe\"<\/code> counts as <code>true<\/code>. If <code>isYes(0.90)<\/code> returns <code>false<\/code> on a borderline <code>0.68<\/code> score, your Java code routes the ticket to a human reviewer instead of firing an automated refund.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Virtual-Thread RAG Guardrails and Reranking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Where <code>DecisionModel<\/code> really earns its keep in enterprise systems is inside <strong>Modular RAG<\/strong>. Vector similarity search is notoriously bad at two things: distinguishing <em>topically similar<\/em> chunks from chunks that actually <em>answer the question<\/em>, and spotting indirect prompt injections hidden inside retrieved documents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Spring AI 2.1 ships two built-in <code>DocumentPostProcessor<\/code> implementations backed by <code>DecisionModel<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>DecisionDocumentFilter<\/code>:<\/strong> Screens each retrieved candidate document for <strong>prompt injection<\/strong>, <strong>contradictions<\/strong>, and <strong>relevance<\/strong> before it ever enters your system prompt.<\/li>\n\n\n\n<li><strong><code>DecisionDocumentReranker<\/code>:<\/strong> Reorders the surviving chunks by asking the <code>DecisionModel<\/code> how directly each chunk answers the user query.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Both fan out per-document evaluations concurrently over any <code>Executor<\/code>\u2014making <strong>Java Virtual Threads<\/strong> a natural fit\u2014and allow you to choose between <strong>fail-open<\/strong> (default, keeping documents the model could not judge while logging the count) and <strong>fail-closed<\/strong> (dropping unjudged documents for high-security pipelines).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@Configuration\npublic class SecureRagConfig {\n\n    @Bean\n    RetrievalAugmentationAdvisor secureRagAdvisor(\n            VectorStore vectorStore,\n            DecisionModel decisionModel) {\n\n        Executor virtualThreadExecutor = Executors.newVirtualThreadPerTaskExecutor();\n\n        DecisionDocumentFilter injectionAndRelevanceFilter = DecisionDocumentFilter.builder()\n                .decisionModel(decisionModel)\n                .executor(virtualThreadExecutor)\n                .failClosed(true) \/\/ Drop chunks that fail screening in high-security apps\n                .build();\n\n        DecisionDocumentReranker reranker = DecisionDocumentReranker.builder()\n                .decisionModel(decisionModel)\n                .executor(virtualThreadExecutor)\n                .build();\n\n        return RetrievalAugmentationAdvisor.builder()\n                .documentRetriever(VectorStoreDocumentRetriever.builder()\n                        .vectorStore(vectorStore)\n                        .topK(12)\n                        .build())\n                .documentPostProcessors(injectionAndRelevanceFilter, reranker)\n                .build();\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Because each retrieved chunk is evaluated in parallel on a virtual thread against a local 600M-parameter decision model, screening 12 candidate chunks adds minimal wall-clock latency while dramatically tightening RAG precision and security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Stopping Wrong-Tool Hallucinations with <code>DecisionToolIndex<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have ever registered 30+ tools on an agent and watched a vector-based tool retriever faithfully hand the LLM the &#8220;nearest&#8221; database tool for a simple greeting, you will love <strong><code>DecisionToolIndex<\/code><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Introduced alongside <code>regex<\/code>, <code>lucene<\/code>, and <code>vector<\/code> strategies in <code>spring-ai-starter-tool-search-advisor<\/code>, <code>DecisionToolIndex<\/code> (<code>tool-index-type: decision<\/code> in the YAML above) makes a <strong>single <code>DecisionModel<\/code> call<\/strong> that asks two questions simultaneously:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Which indexed tool best serves this request?<\/li>\n\n\n\n<li><strong>Does any tool apply at all?<\/strong><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">When the applicability probability falls below your configured <code>applicability-threshold<\/code>, <code>DecisionToolIndex<\/code> returns an empty set\u2014keeping tool schemas out of the prompt completely and preventing unnecessary tool calls.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Production Tuning Notes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before pushing <code>DecisionModel<\/code> into production, keep three operational details in mind:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Tune thresholds against a labeled golden set:<\/strong> Start conservative (<code>0.85\u20130.90<\/code> for irreversible actions like refunds or deletes; <code>0.65\u20130.75<\/code> for routing or filtering) and log raw probabilities via Micrometer\/OTel so you can calibrate false positives vs. false negatives with real traffic.<\/li>\n\n\n\n<li><strong>Pair local decisions with frontier generation:<\/strong> Using local <code>OllamaDecisionModel<\/code> (<code>d1-omni:600m<\/code>) for triage, RAG filtering, and tool indexing while reserving Claude, OpenAI, or Gemini strictly for final synthesis cuts token spend and shrinks attack surface simultaneously.<\/li>\n\n\n\n<li><strong>Choose fail-closed intentionally:<\/strong> Fail-open makes sense for internal developer search tools where availability beats strictness; fail-closed is the right call whenever RAG ingests untrusted web pages, emails, or external issue trackers.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>DecisionModel<\/code> API represents a major maturation step for Spring AI. Not every AI problem is a chat completion problem\u2014and by separating calibrated classification from open-ended text generation, Spring AI 2.1 gives Java architects deterministic routing, virtual-thread RAG guardrails, and smarter tool search that can run right on your own hardware.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stop burning frontier chat tokens and writing brittle regexes just to get a yes\/no answer from an LLM. Learn how Spring AI 2.1&#8217;s DecisionModel API delivers calibrated probabilities locally with Ollama d1-omni:600m, plus virtual-thread RAG filtering and DecisionToolIndex.<\/p>\n","protected":false},"author":1,"featured_media":4069,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[495,443],"tags":[429,69,470,469,319,497],"series":[],"class_list":["post-4056","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-spring_ai","tag-ai","tag-java-2","tag-ollama","tag-rag","tag-spring","tag-spring-ai"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/spring-ai-2-1-decision-model-featured.jpg?fit=1376%2C768&ssl=1","jetpack-related-posts":[{"id":4011,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_ai\/harnessing-transformer-models-with-spring-ai-a-developers-guide-to-enterprise-ai-architecture\/","url_meta":{"origin":4056,"position":0},"title":"Harnessing Transformer Models with Spring AI: A Developer&#8217;s Guide to Enterprise AI Architecture","author":"Jeffery Miller","date":"August 20, 2026","format":false,"excerpt":"Introduction Since the groundbreaking 2017 paper \"Attention Is All You Need\" introduced the Transformer architecture, deep learning and natural language processing (NLP) have experienced a monumental shift. From Large Language Models (LLMs) like GPT-4, LLaMA, and Claude to specialized embedding models like BERT and MiniLM, Transformers form the bedrock of\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/www.mymiller.name\/wordpress\/category\/ai\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/1786883676314.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/1786883676314.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/1786883676314.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/1786883676314.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/1786883676314.avif 3x"},"classes":[]},{"id":3987,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_ai\/enterprise-ai-at-scale-why-spring-ai-and-java-are-built-for-the-long-run\/","url_meta":{"origin":4056,"position":1},"title":"Enterprise AI at Scale: Why Spring AI and Java are Built for the Long Run","author":"Jeffery Miller","date":"July 23, 2026","format":false,"excerpt":"While Python remains the undisputed king of AI research, data exploration, and model training, the landscape shifts dramatically when moving from experimental notebooks to high-throughput, mission-critical production systems. For enterprise engineering teams building user-facing applications, workflow automations, and LLM-powered services, the real challenge isn't training a model\u2014it's integrating, scaling, securing,\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/www.mymiller.name\/wordpress\/category\/ai\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_rht72frht72frht7-scaled.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_rht72frht72frht7-scaled.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_rht72frht72frht7-scaled.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_rht72frht72frht7-scaled.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_rht72frht72frht7-scaled.avif 3x"},"classes":[]},{"id":3995,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_ai\/mastering-retrieval-augmented-generation-rag-with-spring-ai\/","url_meta":{"origin":4056,"position":2},"title":"Mastering Retrieval-Augmented Generation (RAG) with Spring AI","author":"Jeffery Miller","date":"July 27, 2026","format":false,"excerpt":"Retrieval-Augmented Generation (RAG) has become the gold standard architecture for extending the capabilities of Large Language Models (LLMs) with enterprise domain knowledge. By combining the natural language understanding of LLMs with real-time retrieval from dynamic data stores, RAG eliminates hallucinations, enhances accuracy, and avoids the costly alternative of fine-tuning models\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/www.mymiller.name\/wordpress\/category\/ai\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_v05lpdv05lpdv05l-scaled.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_v05lpdv05lpdv05l-scaled.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_v05lpdv05lpdv05l-scaled.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_v05lpdv05lpdv05l-scaled.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_v05lpdv05lpdv05l-scaled.avif 3x"},"classes":[]},{"id":3893,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_ai\/building-intelligent-apps-with-spring-ai\/","url_meta":{"origin":4056,"position":3},"title":"Building Intelligent Apps with Spring AI","author":"Jeffery Miller","date":"July 28, 2026","format":false,"excerpt":"In today's fast-paced world of software development, integrating artificial intelligence into applications is no longer just a trend\u2014it's a necessity. At the heart of this revolution is Generative AI, a type of artificial intelligence that can create new content, such as text, images, and code, in response to prompts. It's\u2026","rel":"","context":"In &quot;Spring AI&quot;","block_context":{"text":"Spring AI","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_ai\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/08\/ai-generated-8273796_1280.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/08\/ai-generated-8273796_1280.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/08\/ai-generated-8273796_1280.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/08\/ai-generated-8273796_1280.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/08\/ai-generated-8273796_1280.avif 3x"},"classes":[]},{"id":4057,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_ai\/stateless-mcp-spring-ai-2-1-modern-2026-07-28-elicitation\/","url_meta":{"origin":4056,"position":4},"title":"Stateless MCP in Spring AI 2.1: Building Modern 2026-07-28 MCP Servers with Multi-Round-Trip Elicitation","author":"Jeffery Miller","date":"November 24, 2026","format":false,"excerpt":"Sticky sessions and stateful initialize handshakes made enterprise Kubernetes deployments of MCP servers brittle. Spring AI 2.1 adds protocol=MODERN (MCP 2026-07-28) with stateless POST \/mcp endpoints, server\/discover, and Multi-Round-Trip human elicitation.","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/www.mymiller.name\/wordpress\/category\/ai\/"},"img":{"alt_text":"3D editorial illustration of glass data capsules gliding across a cyan suspension bridge between server hubs, passing through a glowing amber human-in-the-loop verification archway.","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/stateless-mcp-spring-ai-2-1-featured.jpg?fit=1200%2C670&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/stateless-mcp-spring-ai-2-1-featured.jpg?fit=1200%2C670&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/stateless-mcp-spring-ai-2-1-featured.jpg?fit=1200%2C670&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/stateless-mcp-spring-ai-2-1-featured.jpg?fit=1200%2C670&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/stateless-mcp-spring-ai-2-1-featured.jpg?fit=1200%2C670&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4000,"url":"https:\/\/www.mymiller.name\/wordpress\/ai\/bridging-knowledge-and-action-how-rag-and-mcp-power-the-next-era-of-ai-agents\/","url_meta":{"origin":4056,"position":5},"title":"Bridging Knowledge and Action: How RAG and MCP Power the Next Era of AI Agents","author":"Jeffery Miller","date":"July 28, 2026","format":false,"excerpt":"As Large Language Models (LLMs) continue to evolve, two fundamental limitations persist: knowledge cutoffs and isolation from execution environments. An AI model may possess impressive reasoning capabilities, but without direct access to your private documentation or live production APIs, its ability to solve real-world problems remains severely constrained. To solve\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/www.mymiller.name\/wordpress\/category\/ai\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_gavzhugavzhugavz-scaled.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_gavzhugavzhugavz-scaled.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_gavzhugavzhugavz-scaled.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_gavzhugavzhugavz-scaled.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/07\/Gemini_Generated_Image_gavzhugavzhugavz-scaled.avif 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/4056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/comments?post=4056"}],"version-history":[{"count":1,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/4056\/revisions"}],"predecessor-version":[{"id":4077,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/4056\/revisions\/4077"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/media\/4069"}],"wp:attachment":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/media?parent=4056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/categories?post=4056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/tags?post=4056"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/series?post=4056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}