Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Add Web Search to Your Spring AI Applications - OpenAI Tutorial

Dan Vega via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to integrate real-time web search capabilities into Spring AI applications using OpenAI's chat options in this practical 22-minute tutorial. Discover how to overcome the limitations of static LLM training data by implementing web search functionality that allows your AI applications to access current information from the internet. Master the WebSearchOptions interface to configure search context sizes (low, medium, high) for optimal results and build location-aware AI applications with user location parameters. Explore handling GPT-4o search preview models while avoiding common configuration pitfalls, and create real-world examples including news aggregators, restaurant finders, and current event query systems. Gain hands-on experience with basic web search implementation for current events, building Spring Framework news aggregators, and creating location-based restaurant recommendations. Understand when to use web search versus traditional LLM responses, learn proper error handling for web search-enabled models, and implement production-ready AI features without requiring external search APIs. Follow along with practical code examples while learning to handle OpenAI API limitations and model compatibility issues effectively.

Syllabus

00:00 Introduction & Course Context
02:15 The Problem: Outdated LLM Knowledge
04:30 OpenAI Web Search Documentation
06:45 Setting Up Spring Boot Project
08:00 Basic Chat Client Implementation
10:30 Implementing Web Search Options
14:00 Handling Model Compatibility Issues
18:00 News Aggregator Example
22:00 Location-Based Restaurant Finder
25:00 Final Thoughts & Next Steps

Taught by

Dan Vega

Reviews

Start your review of Add Web Search to Your Spring AI Applications - OpenAI Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.