← 开源

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

TutorialsTool-specific tutorialsGetting startedJava
增长势头
+124 小时新增 Star+0.2%
575
Star
207
Fork
+5
本周
10
贡献者
创建于 2025-10-24 · 更新于 2026-12-06 · 今日第 7228 名
主要开发者
README

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

Translations maintained with Co-op Translator

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 | Khmer | 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. Introduction - Learn the fundamentals of LangChain4j
  2. Prompt Engineering - Master effective prompt design
  3. RAG (Retrieval-Augmented Generation) - Build intelligent knowledge-based systems
  4. Tools - Integrate external tools and simple assistants
  5. MCP (Model Context Protocol) - Work with the Model Context Protocol (MCP) and Agentic modules

Video Walkthroughs

Each module has a companion live session where we walk through the concepts and code step by step.

Module Video
01 - Introduction Getting Started with LangChain4j
02 - Prompt Engineering Prompt Engineering with LangChain4j
03 - RAG RAG with LangChain4j
04 - Tools & 05 - MCP AI Agents with Tools and MCP

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 Code → Codespaces 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 Introduction to get started!

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

Note: This training uses 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

Azure / Edge / MCP / Agents


Generative AI Series


Core Learning


Copilot Series

Getting Help

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

If you have product feedback or errors while building visit:

License

MIT License - See LICENSE file for details.

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载