Daniel Oh & Kevin Dubois
Create AI-Infused Java Apps with LangChain4j
#1about 2 minutes
Navigating the complex AI landscape for Java developers
The overwhelming Python-centric AI ecosystem doesn't require Java developers to switch languages, as powerful Java-native tools exist for AI integration.
#2about 2 minutes
Understanding LangChain4j for Java AI applications
LangChain4j, inspired by Python's LangChain, provides a Java-native framework for integrating AI models, with Quarkus offering simplified integration features.
#3about 5 minutes
Getting started with prompting and structured output
Begin by adding dependencies and using annotations like @AiService to define prompts, parameterize questions, and automatically map model responses to Java objects.
#4about 2 minutes
Implementing stateful conversations with chat memory
LangChain4j provides out-of-the-box chat memory to maintain conversational context, enabling follow-up questions and parallel conversations using a memory ID.
#5about 3 minutes
Connecting AI models to external Java services
Use function calling, also known as tools, to allow the AI model to invoke your existing Java methods and services by describing them with the @Tool annotation.
#6about 4 minutes
Building autonomous agents with the MCP protocol
The Multi-tool Calling Protocol (MCP) enables an AI model to autonomously decide which external tools to call in sequence to fulfill a user's request within a Java environment.
#7about 4 minutes
Implementing guardrails to secure AI interactions
Protect against misuse like prompt injection by using input and output guardrails to sanitize requests and responses, ensuring the model behaves as intended.
#8about 2 minutes
Adding custom knowledge with retrieval-augmented generation
Use Retrieval-Augmented Generation (RAG) to supplement the model's knowledge with your own documents by loading them into a vector store for relevant context retrieval.
#9about 5 minutes
Demo of an AI assistant using LangChain4j and Quarkus
A demonstration of a car rental chatbot showcases how to integrate a database, an external weather service via MCP, and custom documents via RAG to create a comprehensive AI assistant.
Related jobs
Jobs that call for the skills explored in this talk.
Wilken GmbH
Ulm, Germany
Senior
Kubernetes
AI Frameworks
+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
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
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
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
04:06 MIN
Using AI to enable human connection in recruiting
Retention Over Attraction: A New Employer Branding Mindset
03:31 MIN
Using AI to make work more human, not replace humans
Turning People Strategy into a Transformation Engine
Featured Partners
Related Videos
Infusing Generative AI in your Java Apps with LangChain4j
Kevin Dubois
Supercharge Agentic AI Apps: A DevEx-Driven Approach to Cloud-Native Scaffolding
Daniel Oh
Agentic AI Systems for Critical Workloads
Mario Fusco
Java Meets AI: Empowering Spring Developers to Build Intelligent Apps
Timo Salm
Langchain4J - An Introduction for Impatient Developers
Juarez Junior
AI Agents Graph: Your following tool in your Java AI journey
Alex Soto
Supercharge your cloud-native applications with Generative AI
Cedric Clyburn
Building AI-Driven Spring Applications With Spring AI
Timo Salm & Sandra Ahlgrimm
Related Articles
View all articles



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


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

Agenda GmbH
Remote
Intermediate
API
Azure
Python
Docker
+10

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





Allergo AI Diagnostics & Therapeutics Deutschland Inc. & Co KG
Remote
€30-42K
React
PostgreSQL
TypeScript