In Part 1, we learned how an LLM turns your prompt into a response. It all comes down to predicting one token at a time using the information available in its context window. But that raises another question: if AI is capable of writing code, planning trips, and explaining complex topics, why does it sometimes confidently give completely wrong answers?
To answer that, let's continue building our AI-powered Travel Planner.
Running Example
Our Travel Planner is now live, and a user asks:
I'm visiting Tokyo next week. Recommend a famous ramen restaurant that's popular with locals.







