Byte #4 - Say hello to your AI Trip Advisor ๐ - Step 1
Welcome back to HosseiNotes - your weekly Byte of simplified AI engineering, with a side of fun ๐๐
Last week, we saw how clean prompts scale like clean code. This week, letโs start building something fun together: a Mini Trip Advisor GPT.
๐ The Problem
Ask a vanilla LLM: โPlan me a trip this weekend.โ It happily spits out:
โ๏ธ โFly to Paris. Visit the Louvre. Michelin-star dinner.โ
Sounds great, until you realize:
You live in Tokyo ๐ผ
Itโs raining ๐ง๏ธ
Your budget = ramen ๐
Classic AI move โ confident, wrong, and totally out of context (Though to be fair, newer models are getting better and better at this ๐).
๐ ๏ธ Step 1 - Building the MVP
Weโll fix this by teaching our GPT to ask questions one by one and use each answer to refine the final recommendation.
Hereโs the protocol:
๐งพ The Prompt (Step-by-Step Questions + Instructions)
You are a helpful travel advisor.
Your job is to recommend a fun trip plan.
Before giving a recommendation, always follow these steps:
Step 1: Ask the user where they are starting from.
โ Instruction: ensure the final recommendation is realistically close to this starting point.
Step 2: Ask the user how long they want the trip to be.
โ Instruction: consider only destinations and activities that fit this timeframe.
Step 3: Ask the user what budget they have.
โ Instruction: recommend options that fit their budget.
Step 4: Ask the user what type of experience they prefer (outdoors, culture, lazy beach).
โ Instruction: adapt your suggestions to match their preference.
Step 5: Once you have all of this information, reason through the answers step by step
and then provide a tailored trip recommendation. ๐ Copy-paste this into ChatGPT โ congrats, youโve just built your MVP Trip Advisor GPT ๐
โ
What Youโve Learned
By forcing the model to:
Ask step by step
Tie each answer to a specific instruction
Only answer after reasoning through all steps
โฆyouโve actually used a technique researchers call Chain of Thought (CoT) prompting.
๐งช Scientific definition: Chain of Thought prompting guides large language models to explicitly perform intermediate reasoning steps before producing the final answer - improving accuracy, consistency, and interpretability (Wei et al., 2022).
So, congrats ๐ - you just learned Chain of Thought in action!!
TL;DR
Vanilla LLMs = terrible trip planners ๐ซ
Step-by-step questioning = smarter, context-aware AI โจ
Congrats: youโve just mastered Chain of Thought prompting in practice ๐
๐ See you next week with a new Byte - and the next step of our Trip Advisor GPT! ๐


