ai-lc4j-demos/README.md

2.4 KiB

kvant AI Model as a Service & LangChain4j

This demos helps you get started with the integration of AI in Java based applications using Quarkus and LangChain4j. Java is a widely used language established over the last 2 decades. There are a huge number of applications developed using Java, including many deployed in enterprise environments. This makes it appropriate to approach AI from the Java world.

Goals

You are going to play (and hopefully enjoy) with:

  • How to integrate LLMs (Language Models) in your Java application
  • How to build a chatbot using LangChain4j
  • How to configure and how to pass prompts to the LLM
  • How to build agentic systems
  • How to build simple and advanced RAG (Retrieval-Augmented Generation) patterns
  • How to deal with prompt injection: Guardrails
  • How to look in the room-machine: Observability

Requirements

Run demos

  1. Clone the ai-lc4j-workshop repository - https://git.kvant.cloud/phoenix/ai-lc4j-demos
  2. Move to your ai-lc4j-workshop folder
  3. Move to the corresponding demo-0x folder
  4. Execute mvn clean quarkus:dev
  5. Open your internet browser a point to http:\\localhost:8080

WARNING: Be sure your Docker environment is running

Credits

These demos are based on the existing LangChain4j examples and workshops. They have been adapted to use Phoenix Technologies AG's kvant AI cloud platform and LLM's hosted on it.

Resources