From Chat to RAG to MCP: Enhancing Java Applications with AI
Large Language Models have made AI accessible through simple chat interfaces — but building reliable, production-grade features on top of them is far more complex.
In this session, we explore how Java applications can move from basic LLM integration to more advanced architectures using Retrieval-Augmented Generation (RAG) and the Model Context Protocol (MCP). Along the way, we develop a practical mental model of how LLMs actually work, including tokens, context windows, and their operational limitations.
Using real-world examples and open-source libraries such as Spring AI and LangChain4J, we walk through a progression from unstructured chat to grounded retrieval and tool-based orchestration. We examine how to turn natural language into structured Java objects, integrate vector databases, and expose controlled application capabilities to models.
Beyond architecture, the session focuses on the realities of operating AI systems in production: cost, latency, observability, unpredictability, and long-term sustainability. We compare hand-designed RAG pipelines with model-driven orchestration, highlighting trade-offs in consistency, performance, and token usage.
Attendees will leave with a clear, engineering-focused understanding of how to incrementally and responsibly adopt generative AI within existing Java systems — without relying on hype or fragile demos.