AI customer support agent demo using LangChain4j and Spring AI

I’ve been exploring AI libraries for Java recently and built a demo to showcase how to build a AI-powered full-stack app on Spring Boot.

Features:

  • RAG (Retrieval-Augmented Generation): uses a terms of service doc for context
  • Function calling: can fetch, modify, and cancel reservations as allowed by the terms of service
  • Hilla UI with streaming answers and live database view
  • LangChain4j and Spring AI implementations

Repo: GitHub - marcushellberg/java-ai-playground

I hope it can be helpful to folks who want to explore AI tools in Java but haven’t had a chance yet. Let me know what you think.

5 Likes

Wow this is super nice! Thank you for sharing the code as well.

2 Likes

Thank you for sharing :heart_hands:

2 Likes

This is really a great initiative and I am also looking for a solution as a chat addon for Vaadin application. Really great.