Category Archives: Spring AI

Retrieval-Augmented Generation (RAG) with Spring AI

Retrieval-Augmented Generation (RAG) is a powerful pattern that enhances Large Language Models (LLMs) by grounding their responses in your specific documents and data. While GPT-4 is incredibly capable, it doesn’t know about your proprietary documents, internal knowledge bases, or recent updates that occurred after its training cutoff date. RAG solves this problem by retrieving relevant context from your documents before generating responses.

Continue reading

Integrating Spring AI Framework in Your Java Application

This blog post will integrate the Spring AI framework into a Java application. We’ll use a simple project that includes a ChatService and a ChatController to demonstrate using the Spring AI framework to generate text & image responses and horoscopes based on user input.

Update 12/28/2025 – Updated from M1 release to Spring AI 1.1.0 GA

Continue reading