Packt

Build AI Apps with Spring AI, OpenAI, Ollama & SpringBoot

Packt

Build AI Apps with Spring AI, OpenAI, Ollama & SpringBoot

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level
Some related experience required
2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level
Some related experience required
2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Integrate OpenAI’s API with Spring Boot to build AI-driven apps.

  • Master prompt engineering and optimize AI interactions using advanced techniques.

  • Create multimodal applications that process and generate images, text, and audio.

  • Create multimodal applications that process and generate images, text, and audio.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

March 2026

Assessments

17 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 16 modules in this course

In this module, we will introduce you to the course structure, detailing the learning objectives and what you will gain. You'll also identify the essential prerequisites to ensure you're ready for the journey ahead. Finally, we will help you set up the tools and resources required for a seamless learning experience.

What's included

2 videos1 reading

In this module, we will explore the evolution of large language models, from their early stages to the present cutting-edge technologies. We will delve into the revolutionary impact of ChatGPT and similar models on modern AI, along with the benefits and challenges they present in various fields.

What's included

4 videos1 assignment

In this module, we will guide you through setting up Spring AI and integrating it with OpenAI to build AI-powered applications. You will get hands-on experience with tools like OpenAI’s Playground and develop a basic AI chat application with Spring’s ChatClient to interact with OpenAI's platform.

What's included

13 videos1 assignment

In this module, we will explore how GitHub Copilot can assist in error handling within your Spring Boot application. You’ll learn how to set up Copilot and implement custom error handling strategies to enhance code reliability and streamline development.

What's included

2 videos1 assignment

In this module, we will demonstrate how to streamline AI interactions using StringTemplates and PromptTemplates. You will learn how to construct flexible, dynamic prompts and customize message exchanges to optimize the efficiency of your AI-driven applications.

What's included

4 videos1 assignment

In this module, we will introduce Spring AI Advisors and show you how they can be used to enhance and modify AI interactions. You’ll learn to build a custom advisor, starting with a logging advisor, to improve your AI app’s debugging and monitoring capabilities.

What's included

3 videos1 assignment

In this module, we will dive deep into prompt engineering, teaching you how to craft clear and accurate prompts that lead to meaningful outputs. You will also explore real-world examples and learn techniques to mitigate potential risks such as prompt injection.

What's included

7 videos1 assignment

In this module, we will teach you how to generate structured outputs from LLMs using prompt engineering and Spring AI tools. You’ll gain hands-on experience in parsing structured data, essential for AI-powered applications that need consistent and organized information.

What's included

7 videos1 assignment

In this module, we will explore how tool calling can augment LLM functionality by integrating external systems. You will learn how to call live data like currency exchange rates and weather information, expanding the scope and accuracy of your AI-powered applications.

What's included

8 videos1 assignment

In this module, we will introduce Retrieval-Augmented Generation (RAG), a technique for providing LLMs with external knowledge. You’ll learn how RAG improves AI performance by integrating relevant, up-to-date information and explore its advantages over traditional methods like prompt stuffing.

What's included

3 videos1 assignment

In this module, we will walk you through building a full Q&A application powered by RAG. You’ll explore the process of indexing documents, retrieving relevant knowledge, and generating accurate answers, culminating in the development of an end-to-end AI solution.

What's included

6 videos1 assignment

In this module, we will teach you best practices for document ingestion within Spring AI. You’ll learn how to process various document types, including text and Word files, and use chunking techniques to structure content for better AI knowledge retrieval.

What's included

5 videos1 assignment

In this module, we will delve into the concept of multimodality, where AI can work across different data types. You will explore how OpenAI’s image models can generate visual content from text and learn to customize images based on input variations for better results.

What's included

5 videos1 assignment

In this module, we will show you how to analyze images using OpenAI’s vision API. You will learn to pass image files from your local system or as multipart data for processing, with real-world applications such as extracting data from invoices.

What's included

3 videos1 assignment

In this module, we will teach you how to work with OpenAI’s audio models, converting text to realistic speech and vice versa. You’ll explore the customization options for both text-to-speech and speech-to-text, providing you with the tools to build voice-enabled AI applications.

What's included

4 videos1 assignment

In this module, we will explore how to build local AI applications using Ollama and Spring AI. You’ll learn to set up your environment for running LLMs on your local machine and integrate Spring AI seamlessly, enabling you to develop AI-powered applications without relying on cloud services.

What's included

3 videos3 assignments

Instructor

Packt - Course Instructors
Packt
1,561 Courses 440,098 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions