Generative AI for Beginners - Java Edition
Time Commitment: Di complete workshop fit finish online without local setup. E go take 2 minutes to setup di environment, and to explore di samples fit take 1-3 hours depending on how deep you wan explore.
Quick Start
- Fork dis repository go your GitHub account
- Click Code → Codespaces tab → ... → New with options...
- Use di defaults – dis one go select di Development container wey dem create for dis course
- Click Create codespace
- Wait ~2 minutes make di environment ready
- Jump straight go Chapter 2: Provision Azure AI Foundry
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 | 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?
Dis repository get over 50 language translations wey go make di download size big. To clone without di translations, use sparse checkout:
Bash / macOS / Linux:
git clone --filter=blob:none --sparse https://github.com/microsoft/Generative-AI-for-beginners-java.git
cd Generative-AI-for-beginners-java
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'
CMD (Windows):
git clone --filter=blob:none --sparse https://github.com/microsoft/Generative-AI-for-beginners-java.git
cd Generative-AI-for-beginners-java
git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"
Dis one go give you everything wey you need to complete di course with faster download.
Course Structure & Learning Path
Chapter 1: Introduction to Generative AI
- Core Concepts: Understand Large Language Models, tokens, embeddings, and AI capabilities
- Java AI Ecosystem: Overview of Spring AI and OpenAI SDKs
- Model Context Protocol: Introduction to MCP and how e dey help AI agents communication
- Practical Applications: Real-world tins like chatbots and content generation
- → Start Chapter 1
Chapter 2: Development Environment Setup
- Azure AI Foundry: Provision model deployments as code with Bicep and Azure Developer CLI (azd)
- Spring Boot + Spring AI: Best practices for enterprise AI application development
- Keyless Authentication: Connect secure with Microsoft Entra ID — no API keys to manage
- Development Tools: Docker containers, VS Code, and GitHub Codespaces configuration
- → Start Chapter 2
Chapter 3: Core Generative AI Techniques
- Prompt Engineering: Techniques for best AI model responses
- Embeddings & Vector Operations: Implement semantic search and similarity matching
- Retrieval-Augmented Generation (RAG): Combine AI with your own data sources
- Function Calling: Extend AI abilities with custom tools and plugins
- → Start Chapter 3
Chapter 4: Practical Applications & Projects
- Pet Story Generator (petstory/): Creative content generation with Azure AI Foundry
- Foundry Local Demo (foundrylocal/): Local AI model integration with OpenAI Java SDK
- MCP Calculator Service (calculator/): Basic Model Context Protocol implementation with Spring AI
- → Start Chapter 4
Chapter 5: Responsible AI Development
- Azure AI Foundry Content Safety: Test built-in content filtering and safety mechanisms (hard blocks and soft refusals)
- Responsible AI Demo: Hands-on example wey show how modern AI safety systems dey work
- Best Practices: Important rules for ethical AI development and deployment
- → Start Chapter 5
Azure / Edge / MCP / Agents
If you get stuck or get any questions about how to build AI apps. Join other learners and people wey sabi well-well for development inside discussion about MCP. Na good community wey dey support, questions dey welcome and knowledge dey share freely.
If you get product feedback or errors wey show when you dey build, visit:
Disclaimer:
Dis document don translate wit AI translation service Co-op Translator. Even tho we dey try make am correct, abeg make you know say automated translation fit get errors or mistakes. Di original document for dia own language na im be di correct source. For important info, make person wey sabi human translation do am. We no go responsible for any misunderstanding or wrong understanding wey fit happen because of dis translation.