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! π