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.