AI in Java? Meet LangChain4j and Build Intelligent Services
summary
Shows integrating large language models into Java services using LangChain4j with concrete code: OpenAI GPT for text generation and embeddings, Postgres with a vector extension for storing embeddings, and a live-coded mini chatbot that implements Retrieval-Augmented Generation and Function Calling. Demonstrates indexing documents and storing embeddings, returning source fragments, maintaining a message-window chat memory, and using tools that call application methods; demo repo and example outputs (e.g., company policy days, per-user remaining days, contest prize) are provided.
AI-written summary · about
chapters (7)
- 0:00AI in Java with LangChain4j
- 3:37LangChain4j vs Python
- 10:20First chatbot with LangChain4j
- 15:45Loading RAG documents
- 21:09Storing chat context
- 29:35Calling functions with AI
- 39:13Summary & Q&A
related talks
48mBuilding AI Powered Applications with Java
53mJava meets AI: Build LLM-Powered Apps with LangChain4j
47mJava Meets AI: Integrating LLMs into Your Applications with LangChain4j
01h 03mBuilding AI powered Applications with Java
42mBuilding AI Powered Applications with Java
02h 49mJava meets AI: Build LLM-Powered Apps with LangChain4j
46mGenerative AI and Java
02h 44mUsing Generative AI with Java: Beyond Simple Chatbots
