java-ai-playground

java-ai-playground

None

Stars: 250

Visit
 screenshot

This AI-powered customer support application has access to terms and conditions (retrieval augmented generation, RAG), can access tools (Java methods) to perform actions, and uses an LLM to interact with the user. The application includes implementations for LangChain4j in the `main` branch and Spring AI in the `spring-ai` branch. The UI is built using Vaadin Hilla and the backend is built using Spring Boot.

README:

Java AI library comparison app

A browser window with a chatbot and a data grid displaying flight booking details

This app is an AI-powered customer support application that:

  • Has access to terms and conditions (retrieval augmented generation, RAG)
  • Can access tools (Java methods) to perform actions
  • Uses an LLM to interact with the user

The application includes implementations for:

The UI is built using Vaadin Hilla and the backend is built using Spring Boot.

Requirements

  • Java 17+
  • OpenAI API key in OPENAI_API_KEY environment variable

Running

Run the app by running Application.java in your IDE or mvn in the command line.

Thanks

This demo was inspired by the LangChain4jCustomer Support Agent example.

I want to thank the LangChain4j, Spring AI, and Microsoft teams for their support in building this demo. Especially, I want to thank @tzolov from The Spring AI team for his help in building the Spring AI implementation and @sohamda from Microsoft for the Semantic Kernel implementation.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for java-ai-playground

Similar Open Source Tools

For similar tasks

For similar jobs