<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Spring AI on SivaLabs</title><link>https://www.sivalabs.in/categories/spring-ai/</link><description>Recent content in Spring AI on SivaLabs</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 10 Nov 2026 12:11:30 +0530</lastBuildDate><atom:link href="https://www.sivalabs.in/categories/spring-ai/rss.xml" rel="self" type="application/rss+xml"/><item><title>Spring AI : Advisors API</title><link>https://www.sivalabs.in/blog/spring-ai-advisors-api/</link><pubDate>Thu, 30 Jul 2026 06:00:00 +0530</pubDate><guid>https://www.sivalabs.in/blog/spring-ai-advisors-api/</guid><description>&lt;p&gt;Once an AI feature moves beyond a demo, the model call is rarely the whole story.&lt;/p&gt;
&lt;p&gt;You need to log requests, restore conversation history, retrieve relevant documents, reject unsafe input, record metrics, and perhaps validate the model&amp;rsquo;s output.
Putting all of that code directly around every &lt;code&gt;ChatClient&lt;/code&gt; call works for a while. Then a second endpoint arrives, followed by streaming, and suddenly every model call has its own slightly different pile of plumbing.&lt;/p&gt;</description></item><item><title>Spring AI : Chat Memory</title><link>https://www.sivalabs.in/blog/spring-ai-chat-memory/</link><pubDate>Sat, 25 Jul 2026 06:00:00 +0530</pubDate><guid>https://www.sivalabs.in/blog/spring-ai-chat-memory/</guid><description>&lt;p&gt;Large language models are stateless. Send two independent requests to a model, and the second request knows nothing about the first one.
That is perfectly fine for one-shot questions, but it makes a chatbot feel surprisingly forgetful:&lt;/p&gt;</description></item><item><title>Spring AI : Structured Output</title><link>https://www.sivalabs.in/blog/spring-ai-structured-output/</link><pubDate>Wed, 22 Jul 2026 06:00:00 +0530</pubDate><guid>https://www.sivalabs.in/blog/spring-ai-structured-output/</guid><description>&lt;p&gt;Chat models are great at producing prose, but most applications don&amp;rsquo;t want prose — they want a Java object, a &lt;code&gt;List&amp;lt;String&amp;gt;&lt;/code&gt;, or a &lt;code&gt;Map&lt;/code&gt; they can bind to a response and return from a REST API.&lt;/p&gt;
&lt;p&gt;Spring AI&amp;rsquo;s &lt;strong&gt;Structured Output Converters&lt;/strong&gt; bridge that gap: they turn plain-text chat responses into typed Java objects, without you having to hand-write a JSON parser or repeat &amp;ldquo;please respond with valid JSON&amp;rdquo; in every prompt.&lt;/p&gt;</description></item><item><title>Spring AI : Chat with LLMs</title><link>https://www.sivalabs.in/blog/spring-ai-chat-with-llms/</link><pubDate>Mon, 20 Jul 2026 06:00:00 +0530</pubDate><guid>https://www.sivalabs.in/blog/spring-ai-chat-with-llms/</guid><description>&lt;p&gt;Calling an LLM is just an HTTP request. The trouble is that every provider has its own API,
configuration, and response format.&lt;/p&gt;
&lt;p&gt;Spring AI handles that provider-specific plumbing and gives us a familiar Spring API. In this article,
we will use &lt;code&gt;ChatClient&lt;/code&gt; to talk to OpenAI&amp;rsquo;s GPT-5 model and then make our prompts reusable with
&lt;code&gt;PromptTemplate&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>