From the course: Build a JavaScript AI App with React and the OpenAI API

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Prompt engineering for developers

Prompt engineering for developers

- [Instructor] I find that the best use of AI is when we start thinking about how AI can add to an experience to improve the user experience in some way. Now, we've already seen that happen so far in the course by changing the input modality for this weather app so that you can actually ask a question and the system figures out the location based on that question. But we can take that one step farther and grab both the question and the weather data that comes from OpenWeatherMap and combine it into a textual description of the weather. So rather than just providing the temperature and the wind direction, we can get the system through the AI to actually say something meaningful about the weather and describe it. So if I ask, should I wear a jacket today in Burnaby, it not only tells me what temperature it is, but it also tells me whether I should actually wear a jacket and it describes the weather. To do this, we need…

Contents