Thuta Learning
ရှာဖွေရန်
IntermediateAIbeginner

မှန်ကန်သော Context ပေးနည်း

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • မှန်ကန်သော Context ပေးနည်း ကို ကြောက်စရာမလိုအောင် နားလည်မယ်
  • ကိုယ်တိုင် စမ်းသုံးတတ်အောင် လုပ်မယ်
  • မှားလွယ်တဲ့နေရာကို ပြုံးပြီး ရှောင်တတ်မယ်

AI က မမြင်ရတဲ့ file ကို မှန်းပါတယ်။ ဘယ်ဖိုင်ဖွင့်၊ ဘယ် error ကူး၊ ဘယ်ဥပမာပေးရမလဲကို လေ့လာမည်။

ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်

Context window က အကန့်အသတ်ရှိပါတယ်။ Project တစ်ခုလုံးကို “အားလုံးဖတ်” ခိုင်းတာက တစ်ခါတလေ ပိုဆိုးပါတယ်။ မှန်ကန်တဲ့ context က သေးပြီး ဆိုင်ပါတယ်။ ပြင်ရမည့် file၊ ဆင်တူသော ဥပမာ file၊ error message အပြည့်၊ နဲ့ လက်ရှိ UI screenshot ဖော်ပြချက်။ မဆိုင်တဲ့ file များများထည့်လေ AI က မှားယှက်လေပါ။

နေ့စဉ်ဘဝနဲ့ ချိတ်ကြည့်မယ်

Button style ပြင်ချင်ရင် Button.tsx နဲ့ သုံးထားတဲ့ page တစ်ခုပဲဖွင့်ပါ။ API error ဆိုရင် request URL၊ status code၊ response body ကို ကူးပါ။ “အလုပ်မလုပ်ဘူး” တစ်လုံးတည်းက context မဟုတ်ပါဘူး။ Cursor မှာ file ကို @ နဲ့ထည့်နိုင်ပါတယ်။ Chat မှာဆိုရင် ဆိုင်ရာ function ကိုသာ paste ပါ။ လျှို့ဝှက်ချက်၊ .env၊ user data ကို မထည့်ပါနှင့်။

အတူတူ လက်တွေ့စမ်းမယ်

text
Paste this, not “it is broken”:

File: apps/web/src/app/api/notes/route.ts
Action: POST /api/notes
Status: 400
Body: { "error": "title required" }
Expected: empty title shows inline error, not a blank page
You should see
Bug တစ်ခုအတွက် AI နားလည်နိုင်သော context bundle တည်ဆောက်နိုင်မည်။

၅ မိနစ် စမ်းကြည့်

လက်ရှိတွေ့ဖူးတဲ့ bug တစ်ခုအတွက် file၊ action၊ expected၊ actual ကို ၈ ကြောင်းအတွင်း ရေးပါ။ Secret မပါအောင် စစ်ပါ။

သတိလေးတစ်ချက်

AI output ကို အပြီးသတ်အမှန်လို့မယူပါနှင့်။ Code၊ secret နှင့် user data ကို လူကပြန်ဖတ်၊ စမ်းပြီးမှ သုံးပါ။

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • Repo တစ်ခုလုံးကို context အဖြစ်ပစ်ထည့်ခြင်း
  • API key ပါသော screenshot ကို chat ထဲထည့်ခြင်း

အခု ကိုယ်တိုင် စမ်းကြည့်

လက်ရှိတွေ့ဖူးတဲ့ bug တစ်ခုအတွက် file၊ action၊ expected၊ actual ကို ၈ ကြောင်းအတွင်း ရေးပါ။ Secret မပါအောင် စစ်ပါ။

You'll know it worked when: Bug တစ်ခုအတွက် AI နားလည်နိုင်သော context bundle တည်ဆောက်နိုင်မည်။

မှန်ကန်သော Context ပေးနည်း | Thuta Learning