Create AI-Infused Apps with LangChain4j: Insights from the Quarkus Developers
Hands-on Lab (3h) (INTERMEDIATE level)
BOF 1
Generative AI has taken the world by storm over the last year, and it seems like every executive leader out there is telling us “regular” Java application developers to “add AI” to our applications. Does that mean we need to drop everything we’ve built and become data scientists instead now?
Fortunately, we can infuse AI models built by actual AI experts into our applications in a fairly straightforward way, thanks to some new projects out there. We promise it’s not as complicated as you might think! Thanks to the ease of use and superb developer experience of Quarkus and the nice AI integration capabilities that the LangChain4j libraries offer, it becomes trivial to start working with AI and make your stakeholders happy 🙂
In this lab, you’ll explore a variety of AI capabilities. We’ll start from the Quarkus DevUI where you can try out AI models even before writing any code. Then we’ll get our hands dirty with writing some code and exploring LangChain4j features such as prompting, chaining, and preserving state; agents and function-calling; enriching your AI model’s knowledge with your own documents using retrieval augmented generation (RAG); and discovering ways to run (and train) models locally using tools like Ollama and/or Podman AI Lab. In addition, you’ll add observability and fault tolerance to the AI integration and compile the app to a native binary. You might even try new features, such as generating images or audio!
Come to this session to learn how to build AI-infused applications in Java from the actual Quarkus experts and engineers working on the Quarkus LangChain4j extensions. This is also an opportunity to provide feedback to the maintainers of these projects and contribute back to the community.
Fortunately, we can infuse AI models built by actual AI experts into our applications in a fairly straightforward way, thanks to some new projects out there. We promise it’s not as complicated as you might think! Thanks to the ease of use and superb developer experience of Quarkus and the nice AI integration capabilities that the LangChain4j libraries offer, it becomes trivial to start working with AI and make your stakeholders happy 🙂
In this lab, you’ll explore a variety of AI capabilities. We’ll start from the Quarkus DevUI where you can try out AI models even before writing any code. Then we’ll get our hands dirty with writing some code and exploring LangChain4j features such as prompting, chaining, and preserving state; agents and function-calling; enriching your AI model’s knowledge with your own documents using retrieval augmented generation (RAG); and discovering ways to run (and train) models locally using tools like Ollama and/or Podman AI Lab. In addition, you’ll add observability and fault tolerance to the AI integration and compile the app to a native binary. You might even try new features, such as generating images or audio!
Come to this session to learn how to build AI-infused applications in Java from the actual Quarkus experts and engineers working on the Quarkus LangChain4j extensions. This is also an opportunity to provide feedback to the maintainers of these projects and contribute back to the community.
AI-generated (Experimental): may contain inaccuracies, please verify facts.
Kevin Dubois
Red Hat
Kevin is a Java Champion, software engineer, author and international speaker with a passion for open source, Java, and cloud native development & deployment practices. He currently works as developer advocate at Red Hat where he gets to enjoy working with open source projects and improving the developer experience.
Kevin is actively involved in open source communities, contributing to projects such as Quarkus, Knative, Apache Camel, and Podman (Desktop). He is also a member of the Belgian CNCF and the Belgian Java User Group.
Kevin speaks English, Dutch, French and Italian fluently and is currently based in Belgium, having lived in Italy and the USA as well.
In his free time you can find Kevin somewhere in the wild hiking, gravel biking, snowboarding or packrafting.
Kevin is actively involved in open source communities, contributing to projects such as Quarkus, Knative, Apache Camel, and Podman (Desktop). He is also a member of the Belgian CNCF and the Belgian Java User Group.
Kevin speaks English, Dutch, French and Italian fluently and is currently based in Belgium, having lived in Italy and the USA as well.
In his free time you can find Kevin somewhere in the wild hiking, gravel biking, snowboarding or packrafting.
Georgios Andrianakis
Red Hat
Georgios works for Red Hat as a Principal Software Engineer and is currently the most active contributor for Quarkus, where he works in all sorts of areas, including but not limited to LangChain4j, RESTEasy Reactive, Spring compatibility, Kubernetes support, testing, Kotlin and more.
He is also an enthusiastic promoter of Quarkus that never misses a chance to spread the Quarkus love!
He is also an enthusiastic promoter of Quarkus that never misses a chance to spread the Quarkus love!
Eric Deandrea
Red Hat
Eric is a Java Champion and Senior Principal Developer Advocate at Red Hat. Eric has over 25 years of experience designing and building Java-based solutions and developer training programs in the financial services and insurance industries. He is also a contributor to various Open Source projects, including Quarkus, Spring, LangChain4J, WireMock, and Microcks, as well as a speaker at many public events and user groups around the world.
Eric recently put his Quarkus and Spring knowledge to use by publishing his first book, “Quarkus for Spring Developers.” Outside of work, Eric enjoys boating on the lakes of New Hampshire, ice hockey, and martial arts, in which he holds a black belt in Kempo Karate.
Eric recently put his Quarkus and Spring knowledge to use by publishing his first book, “Quarkus for Spring Developers.” Outside of work, Eric enjoys boating on the lakes of New Hampshire, ice hockey, and martial arts, in which he holds a black belt in Kempo Karate.
Clement Escoffier
Red Hat
Clement Escoffier (@clementplop) is a distinguished engineer at Red Hat. He is a Java Champion. Before joining Red Hat, Clement had several professional lives, from academic positions to management. He contributed to projects and products, touching many domains and technologies such as OSGi, mobile, continuous delivery, and DevOps. Clement has always been interested in software engineering, distributed systems, and event-driven architecture. He recently focused on Reactive Systems, Cloud-Native applications, and Kubernetes. Clement contributed to many open-source projects, such as Apache Felix, Eclipse Vert.x, SmallRye, Mutiny, and Quarkus. He also authored the "Reactive Systems in Java" book.
Lize Raes
Open Tide
Lize Raes is Product Manager and Developer Advocate at Naboo.ai, where she helps to build the developer productivity toolbox of the future. Known as the public face of the LangChain4j framework, she loves inspiring developers to apply the potential of AI in real-world applications. Committed to applying technology to societal challenges, Lize has embraced roles such as cochlear implant researcher at Ghent University, bioinformatics engineer for drug development software, and advisor to the Belgian government, where her COVID-19 prognosis model was used to steer drug and hospital supplies during the pandemic. In her free time, you will find her behind the piano or in her woodworking atelier.