Building LLM Apps in Java with LangChain4j

Yesterday I gave a talk titled “Building LLM Apps in Java with LangChain4j.” The core idea was simple: building LLM applications is not mainly about writing clever prompts. It is about applying the same engineering discipline we already use in Java systems. The talk followed the staged evolution of a Spring Boot store assistant. It … Read more

Building Robust AI Applications with LangChain4j Guardrails and Spring Boot

As AI applications become increasingly complex, ensuring that language models behave predictably and safely is paramount. LangChain4j’s guardrails feature provides a powerful framework for validating both the inputs and outputs of your AI services. This article demonstrates how to implement comprehensive guardrails in a Spring Boot application, with practical examples that you can adapt to … Read more

Java + LLMs  + LangChain4j — 2025 Talk Series

Shaaf and I have been heads‑down exploring how LangChain4j slots into everyday Java and Jakarta EE projects. Our experiments have grown into a full talk series. You can find a list of delivered and upcoming talks on my conference page: https://bazlur.ca/conferences/ Why we’re doing this LangChain4j gives Java devs RAG pipelines, vector‑store abstractions, and agent helpers without leaving the … Read more

Chat with Your Knowledge Base: A Hands-On Java & LangChain4j Guide

Disclaimer: This article details an experimental project built for learning and demonstration purposes. The implementation described is not intended as a production-grade solution. Some parts of the code were generated using JetBrains’ AI Agent, Junie. Large Language Models (LLMs) like GPT-4, Llama, and Gemini have revolutionized how we interact with information. However, their knowledge is … Read more

Building FormPilot: My Journey Creating an AI-Powered Form Filler with RAG, LangChain4j, and Ollama

Disclaimer: This article details an experimental project built for learning and demonstration purposes. The implementation described is not intended as production-grade solution. Some parts of the code were generated using JetBrains’ AI Agent, Junie. Have you ever found yourself filling out the same information on web forms over and over again? Name, email, address, phone … Read more

JetBrains Junie: My Firsthand Experience

LLMs are taking over the world—almost literally. Every day, we hear about new models popping up, pushing the boundaries of what AI can do. While some worry about it, others welcome it with open arms. The truth is that AI will inevitably take over certain tasks, much like cars replaced by horse-drawn carriages. But that … Read more

SummarizingTokenWindowChatMemory: Enhancing LLM’s Conversations with Efficient Summarization

LLM chat models have become an integral part of many applications today. We are all experimenting and exploring the best ways to utilize them effectively. For Java developers, LangChain4j has been an incredible tool in this journey. By design, most available APIs, such as ChatGPT and Gemini, operate in a fire-and-forget mode. They don’t retain … Read more