AI in Java
Follow an application from its first language-model call to retrieval, validation, and access to business data. These articles include companion projects and discuss the limits of their examples. Start with the store assistant, then explore the pieces you need.
Start here
- Building LLM Apps in Java with LangChain4j
Follow a store assistant from prompting to grounded answers.
- Chat with Your Knowledge Base: A Hands-On Java & LangChain4j Guide
Retrieve context from a knowledge base.
- Building Robust AI Applications with LangChain4j Guardrails and Spring Boot
Validate inputs and outputs with guardrails.
- One Database, Two Models: Building AI-Friendly Java Applications with MySQL JSON Duality Views
Expose relational business data through scoped Java tools.
Explore
- One Database, Two Models: Building AI-Friendly Java Applications with MySQL JSON Duality Views
- Building LLM Apps in Java with LangChain4j
- AI-Assisted Java Development: An 18-Part Series
- Building Robust AI Applications with LangChain4j Guardrails and Spring Boot
- Java + LLMs + LangChain4j — 2025 Talk Series
- Chat with Your Knowledge Base: A Hands-On Java & LangChain4j Guide
- Building FormPilot: My Journey Creating an AI-Powered Form Filler with RAG, LangChain4j, and Ollama
- JetBrains Junie: My Firsthand Experience
- SummarizingTokenWindowChatMemory: Enhancing LLM’s Conversations with Efficient Summarization