Practical Applications & Projects

July 2, 2026 ยท View on GitHub

Wetin You Go Learn

For dis section we go demo three practical applications wey dey show generative AI development patterns wit Java:

  • Create a multi-modal Pet Story Generator wey combine client-side and server-side AI
  • Implement local AI model integration wit di Foundry Local Spring Boot demo
  • Develop a Model Context Protocol (MCP) service wit di Calculator example

Table of Contents

Introduction

Dis chapter dey show sample projects wey demonstrate generative AI development patterns wit Java. Each project dey fully functional and dey show specific AI technologies, architectural patterns, and beta practices wey you fit adapt for your own applications.

Foundry Local Spring Boot Demo

Di Foundry Local Spring Boot Demo dey show how to integrate wit local AI models using di OpenAI Java SDK. E dey show how to connect to models wey dey run for Foundry Local (e.g., Phi-4-mini), wit automatic model detection, wey allow you run AI applications without to depend on cloud services.

Pet Story Generator

Di Pet Story Generator na one better Spring Boot web application wey show multi-modal AI processing to generate creative pet stories. E combine client-side and server-side AI capabilities using transformer.js for browser-based AI interactions and di OpenAI SDK for server-side processing.

MCP Calculator Service (Beginner-Friendly MCP Demo)

Di MCP Calculator Service na one simple demonstration of di Model Context Protocol (MCP) using Spring AI. E provide beginner-friendly introduction to MCP concepts, wey dey show how to create basic MCP Server wey fit interact wit MCP clients.

Learning Progression

These projects dem design to build upon concepts from previous chapters:

  1. Start Simple: Begin wit di Foundry Local Spring Boot Demo to understand basic AI integration wit local models
  2. Add Interactivity: Progress to di Pet Story Generator for multi-modal AI and web-based interactions
  3. Learn MCP Basics: Try di MCP Calculator Service to understand Model Context Protocol fundamentals

Summary

Good work! You don explore some real applications now:

  • Multi-modal AI experiences wey dey work both for di browser and on di server
  • Local AI model integration using modern Java frameworks and SDKs
  • Your first Model Context Protocol service to see how tools dey integrate wit AI

Next Steps

Chapter 5: Responsible Generative AI


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.