Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Build Intelligent AI Apps: Introduction
Play lesson

Java and AI for Beginners - Build Intelligent AI Apps: Introduction

4.0 (1)
7 learners

What you'll learn

This course includes

  • 4.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this episode, Ayan Gupta is joined by Julien Dubois from Microsoft's Java Developer Advocacy team and a core contributor to LangChain4j, who demonstrates how to build intelligent AI applications with Java. Just like a smart coffee mug that changes color when it senses heat, modern applications need adaptive intelligence, and Julien shows you exactly how to add it. This is the first of two sessions focused on building intelligent AI apps. Julien walks you through the fundamentals of integrating LangChain4j with the official OpenAI Java SDK, showing you how to transform a simple Spring Boot application into an AI-powered poem generator. You'll learn why LangChain4j is the framework of choice for Java AI development, its unified interface means you can easily swap between different LLM providers without rewriting your code. Julien demonstrates how to add LangChain4j dependencies using Maven's bill of materials (BOM) for clean dependency management across multiple modules.You'll configure your first chat model using Azure AI Foundry, connecting to GPT-4o Mini through the official OpenAI SDK implementation. Julien explains the three key parameters you need: the base URL, your API key, and the model name. The beauty of LangChain4j shines through as you see how the same ChatModel interface works across any LLM implementation, whether you're using OpenAI, Mistral, Llama, or GitHub Models. Resources: aka.ms/JavaAndAIForBeginners 0:00 - Introduction: Adding Intelligence to Applications 0:46 - What Is LangChain4j and Why Use It? 1:18 - Creating a New Project with start.spring.io 2:12 - Setting Up Maven with Java 24 2:32 - Running the Basic Application 2:52 - Using GitHub Copilot to Add Command Line Runner 3:29 - Testing User Input Without AI 3:47 - Adding LangChain4j to the Project 4:28 - Understanding Maven Bill of Materials 5:17 - Choosing the OpenAI SDK Integration 5:49 - Configuring the Chat Model 6:27 - Connecting to Azure AI Foundry 7:11 - Getting API Keys and Endpoints 8:27 - Setting Model Parameters 8:47 - Creating the Poem Prompt 9:25 - Testing the AI Integration 10:06 - Seeing the Generated Poem 10:30 - Session Recap and Next Steps #LangChain4j #JavaAI #OpenAI #IntelligentApps #SpringBoot #AzureAI #JavaDevelopment #AIIntegration #ChatModels #AIApplications #Java24

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere