Kevin Dubois
Infusing Generative AI in your Java Apps with LangChain4j
#1about 3 minutes
Integrating generative AI into Java applications with LangChain4j
LangChain4j simplifies consuming AI model APIs for Java developers, avoiding the need for deep data science expertise.
#2about 3 minutes
Creating a new Quarkus project with LangChain4j
Use the Quarkus CLI to bootstrap a new Java application and add the necessary LangChain4j dependency for OpenAI integration.
#3about 2 minutes
Using prompts and AI services in LangChain4j
Define AI interactions using the @RegisterAIService annotation, system messages for context, and user messages with dynamic placeholders.
#4about 2 minutes
Managing conversational context with memory
LangChain4j uses memory to retain context across multiple calls, with the @MemoryId annotation enabling parallel conversations.
#5about 2 minutes
Connecting AI models to business logic with tools
Use the @Tool annotation to expose Java methods to the AI model, allowing it to execute business logic like sending an email.
#6about 5 minutes
Live demo of prompts, tools, and the Dev UI
A practical demonstration shows how to generate a haiku using a prompt and then use a custom tool to send it via email, verified with Mailpit.
#7about 3 minutes
Providing custom knowledge with retrieval-augmented generation (RAG)
Enhance LLM responses with your own business data by using an embedding store or Quarkus's simplified 'Easy RAG' feature.
#8about 6 minutes
Building a chatbot with a custom knowledge base
A chatbot demo uses a terms of service document via RAG to correctly enforce a business rule for booking cancellations.
#9about 2 minutes
Using local models and implementing fault tolerance
Run LLMs on your local machine with Podman AI Lab and make your application resilient to failures using SmallRye Fault Tolerance annotations.
#10about 4 minutes
Demonstrating fault tolerance with a local LLM
A final demo shows an application calling a locally-run model and triggering a fallback mechanism when the model service is unavailable.
Related jobs
Jobs that call for the skills explored in this talk.
Wilken GmbH
Ulm, Germany
Senior
Kubernetes
AI Frameworks
+3
ROSEN Technology and Research Center GmbH
Osnabrück, Germany
Senior
TypeScript
React
+3
Matching moments
03:07 MIN
Final advice for developers adapting to AI
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
09:10 MIN
How AI is changing the freelance developer experience
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
14:06 MIN
Exploring the role and ethics of AI in gaming
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
03:28 MIN
Why corporate AI adoption lags behind the hype
What 2025 Taught Us: A Year-End Special with Hung Lee
06:28 MIN
Using AI agents to modernize legacy COBOL systems
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
04:05 MIN
How AI code generators have become more reliable
AI in the Open and in Browsers - Tarek Ziadé
04:06 MIN
Using AI to enable human connection in recruiting
Retention Over Attraction: A New Employer Branding Mindset
Featured Partners
Related Videos
Create AI-Infused Java Apps with LangChain4j
Daniel Oh & Kevin Dubois
Langchain4J - An Introduction for Impatient Developers
Juarez Junior
Supercharge your cloud-native applications with Generative AI
Cedric Clyburn
Java Meets AI: Empowering Spring Developers to Build Intelligent Apps
Timo Salm
Agentic AI Systems for Critical Workloads
Mario Fusco
Supercharge Agentic AI Apps: A DevEx-Driven Approach to Cloud-Native Scaffolding
Daniel Oh
Building AI-Driven Spring Applications With Spring AI
Timo Salm & Sandra Ahlgrimm
Make it simple, using generative AI to accelerate learning
Duan Lightfoot
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Forschungszentrum Jülich GmbH
Jülich, Germany
Intermediate
Senior
Linux
Docker
AI Frameworks
Machine Learning


Agenda GmbH
Raubling, Germany
Remote
Intermediate
API
Azure
Python
Docker
+10

Agenda GmbH
Remote
Intermediate
API
Azure
Python
Docker
+10

Robert Ragge GmbH
Senior
API
Python
Terraform
Kubernetes
A/B testing
+3



Amazon.com Inc.
Senior
R
API
Unix
Perl
Ruby
+7
