Free courses from frontend to fullstack and AI
Gain a Splash of New Skills - Coursera+ Annual Nearly 45% Off
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