tzolov / java-ai-playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI powered expert system demo

This app shows how you can use LangChain4j to build an AI-powered system 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

All credit for the example goes to LangChain4j, this demo simply expands on it by adding a React UI and a database.

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.

About

License:The Unlicense


Languages

Language:Java 77.9%Language:TypeScript 19.7%Language:HTML 2.4%