LangChain4j-for-Beginners

LangChain4j-for-Beginners

A course for AI applications with LangChain4j from simple chat to AI agents.

Stars: 169

Visit
 screenshot

LangChain4j-for-Beginners is a course designed to help beginners build AI applications using LangChain4j and Azure OpenAI GPT-5.2. The course covers topics such as chatbots, AI agents, prompt engineering, and integrating external tools. Learners can use GitHub Models and Azure OpenAI for different modules. The repository includes 50+ language translations, but users can clone without translations for faster download. The course provides a learning path, GitHub Copilot integration for paired programming, and additional resources related to LangChain, Azure, generative AI, core learning, and Copilot series. Learners can get help through the Azure AI Foundry Discord community or the Azure AI Foundry Developer Forum.

README:

LangChain4j

LangChain4j for Beginners

A course for building AI applications with LangChain4j and Azure OpenAI GPT-5.2, from basic chat to AI agents.

🌐 Multi-Language Support

Supported via GitHub Action (Automated & Always Up-to-Date)

Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kannada | Korean | Lithuanian | Malay | Malayalam | Marathi | Nepali | Nigerian Pidgin | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Telugu | Thai | Turkish | Ukrainian | Urdu | Vietnamese

Prefer to Clone Locally?

This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:

Bash / macOS / Linux:

git clone --filter=blob:none --sparse https://github.com/microsoft/LangChain4j-for-Beginners.git
cd LangChain4j-for-Beginners
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

CMD (Windows):

git clone --filter=blob:none --sparse https://github.com/microsoft/LangChain4j-for-Beginners.git
cd LangChain4j-for-Beginners
git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"

This gives you everything you need to complete the course with a much faster download.

Table of Contents

  1. Quick Start - Get started with LangChain4j
  2. Introduction - Learn the fundamentals of LangChain4j
  3. Prompt Engineering - Master effective prompt design
  4. RAG (Retrieval-Augmented Generation) - Build intelligent knowledge-based systems
  5. Tools - Integrate external tools and simple assistants
  6. MCP (Model Context Protocol) - Work with the Model Context Protocol (MCP) and Agentic modules

Learning Path

New to LangChain4j? Check out the Glossary for definitions of key terms and concepts.

Quick Start

  1. Fork this repository to your GitHub account
  2. Click CodeCodespaces tab → ...New with options...
  3. Use the defaults – this will select the Development container created for this course
  4. Click Create codespace
  5. Wait 5-10 minutes for the environment to be ready
  6. Jump straight to Quick Start to get started!

After completing the modules, explore the Testing Guide to see LangChain4j testing concepts in action.

Note: This training uses both GitHub Models and Azure OpenAI. The Quick Start module uses GitHub Models (no Azure subscription required), while modules 1-5 use Azure OpenAI. Get started with a FREE Azure account if you don't have one.

Learning with GitHub Copilot

To quickly start coding, open this project in a GitHub Codespace or your local IDE with the provided devcontainer. The devcontainer used in this course comes pre-configured with GitHub Copilot for AI paired programming.

Each code example includes suggested questions you can ask GitHub Copilot to deepen your understanding. Look for the 💡/🤖 prompts in:

  • Java file headers - Questions specific to each example
  • Module READMEs - Exploration prompts after code examples

How to use: Open any code file and ask Copilot the suggested questions. It has full context of the codebase and can explain, extend, and suggest alternatives.

Want to learn more? Check out Copilot for AI Paired Programming.

Additional Resources

LangChain

LangChain4j for Beginners LangChain.js for Beginners LangChain for Beginners

Azure / Edge / MCP / Agents

AZD for Beginners Edge AI for Beginners MCP for Beginners AI Agents for Beginners


Generative AI Series

Generative AI for Beginners Generative AI (.NET) Generative AI (Java) Generative AI (JavaScript)


Core Learning

ML for Beginners Data Science for Beginners AI for Beginners Cybersecurity for Beginners Web Dev for Beginners IoT for Beginners XR Development for Beginners


Copilot Series

Copilot for AI Paired Programming Copilot for C#/.NET Copilot Adventure

Getting Help

If you get stuck or have any questions about building AI apps, join:

Azure AI Foundry Discord

If you have product feedback or errors while building visit:

Azure AI Foundry Developer Forum

License

MIT License - See LICENSE file for details.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for LangChain4j-for-Beginners

Similar Open Source Tools

For similar tasks

For similar jobs