AI Meets Spring Petclinic: Implementing an AI Assistant with Spring AI (Part II)

Engineering | Oded Shopen | September 27, 2024 | ...

Recap of Part I

In the first part of this blog series, we explored the basics of integrating Spring AI with large language models. We walked through building a custom ChatClient, leveraging Function Calling for dynamic interactions, and refining our prompts to suit the Spring Petclinic use case. By the end, we had a functional AI assistant capable of understanding and processing requests related to our veterinary clinic domain.

Now, in Part II, we’ll go a step further by exploring Retrieval-Augmented Generation (RAG), a technique that enables us to handle large datasets that wouldn’t fit…

AI Meets Spring Petclinic: Implementing an AI Assistant with Spring AI (Part I)

Engineering | Oded Shopen | September 26, 2024 | ...

Introduction

In this two-parts blog post, I will discuss the modifications I made to Spring Petclinic to incorporate an AI assistant that allows users to interact with the application using natural language.

Introduction to Spring Petclinic

Spring Petclinic serves as the primary reference application within the Spring ecosystem. According to GitHub, the repository was created on January 9, 2013. Since then, it has become the model application for writing simple, developer-friendly code using Spring Boot. As of this writing, it has garnered over 7,600 stars and 23,000 forks.

e386a28e-e860-4cf7-a94c-aa7dad13abe3

The application…

This Week in Spring - September 24th, 2024

Engineering | Josh Long | September 24, 2024 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! I'm in delightful Dallas, TX, at the amazing JConf.dev show. Then I'm off to Germany, and then back home to do some laundry before heading out to Denver, CO, for the amazing Dev2Next show, before then heading out to Belgium for Devoxx Belgium. It's going to be a fun few weeks. How're you doin'?

This Week in Spring - September 17th, 2024

Engineering | Josh Long | September 17, 2024 | ...

Hi, Spring fans! Last week I was in scintilliating Seoul, Korea, and then tantalizing Tokyo, Japan, and now I'm in marvelous Mumbai, India, at the airport, actually, headed to New Delhi, India. It's been a busy week for me and even busier a week for the community, so let's dive into it!

A Bootiful Podcast: Spring creator and cofounder, Dr. Rod Johnson

Engineering | Josh Long | September 12, 2024 | ...

In this wide-ranging interview, I finally sit down one-on-one and talk to Dr. Rod Johnson, the creator of Spring, entrepreneur, venture capitalist, engineer, father, Kotlin fan, AI researcher, and musician, about this, that, and everything in between, fresh off our recent SpringOne presentation on Spring AI with Spring AI founder Dr. Mark Pollack. This is an extra special, extra-long episode!

This Week in Spring - September 10th, 2024

Engineering | Josh Long | September 10, 2024 | ...

Hi, Spring fans! Or, I suppose: 안녕하세요, Spring 팬 여러분! I'm writing this from a café in scintillating Seoul, Korea. It's amazing. I've been talking to developers of all stripes who are using and building upon Spring to do all sorts of cool stuff.

And tomorrow, it's off to jolly Japan. I'll be speaking, among other places, at the Japanese Spring User Group in Tokyo. I'd love to see you there!

We've got a lot to cover so let's dive right into it!

A Bootiful Podcast: Sébastien Deleuze on Spring Framework and Kotlin, GraalVM, Project Leyden, AppCDS, runtime efficiency, Kotlin, and more

Engineering | Josh Long | September 06, 2024 | ...

Dive deep into the world of Spring Framework and Kotlin, GraalVM, Project Leyden, AppCDS, runtime efficiency, Kotlin, and more, with the one and only Sébastien Deleuze! From runtime efficiency to all things Kotlin, this episode is packed with expert insights and valuable information. Don't miss out on this enlightening conversation with a true Spring guru! Tune in now! #Java #SpringFramework #Kotlin #TechTalks #SpringBoot

This Week in Spring - September 3rd, 2024

Engineering | Josh Long | September 03, 2024 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's September 3rd, and I'm still buzzing from the last week's SpringOne extravaganza! Also: I'm tired. Last week was nuts. I'm super glad it happened, but I'm tired. And also buzzing. You know? Surely you don't. I hope not lol. It's confusing. I feel like I am still "on," like there's work to be done for SpringOne. But I think I also appreciate that it's in the rear view window and it's time to focus on what's ahead: Asia! This Friday, I head to Korea, then Japan, then India, and then (not yet confirmed) China. Pay…

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all