(ဒီသင်ခန်းစာရဲ့ ဗီဒီယိုကိုကြည့်ရန် အပေါ်က ပုံကိုနှိပ်ပါ)
ဒီသင်ခန်းစာတွင် လေ့လာမည့်အကြောင်းအရာများမှာ -
ဒီသင်ခန်းစာပြီးနောက် သင်မှာ ပြုလုပ်နိုင်ပါမည် -
ပထမဦးစွာ လုံခြုံသော ကိုယ်စားလှယ်ဆော့ဖ်ဝဲများ တည်ဆောက်ရာကို ကြည့်ကြရအောင်။ လုံခြုံမှုဆိုသည်မှာ AI ကိုယ်စားလှယ်သည် ပုံစံအတိုင်း အလုပ်လုပ်သည်ကို ဆိုလိုသည်။ ကိုယ်စားလှယ်ဆော့ဖ်ဝဲများ ဖန်တီးသူများအနေနဲ့ လုံခြုံမှု အမြင့်ဆုံး ထားရှိရန် နည်းလမ်းများနှင့် ကိရိယာများ ရှိသည်။
အကြီးစားဘာသာစကားမော်ဒယ် (LLMs) အသုံးပြု၍ AI ဆော့ဖ်ဝဲတစ်ခု ဖန်တီးဖူးထားလျှင်၊ စနစ်ပုံစံ သို့မဟုတ် စနစ်မက်ဆေ့ခ်ျ သေချာဒီဇိုင်းရေးဆွဲခြင်း အရေးကြီးမှုကို သိရှိဖြစ်ပြီး ဖြစ်နိုင်ပါသည်။ ဤစာလုံးပုံစံများသည် LLM နှင့် အသုံးပြုသူ၊ ဒေတာတို့ ဆက်သွယ်သည့် နည်းလမ်း၊ စည်းမျဉ်းများနှင့် ညွှန်ကြားချက်များကို သတ်မှတ်ပေးသည်။
AI ကိုယ်စားလှယ်များအတွက် စနစ်မက်ဆေ့ခ်ျသည် အလွန်အရေးကြီးဖြစ်သည်။ AI ကိုယ်စားလှယ်များ သုံးစွဲရမည့် မိမိတို့ ဖန်တီးထားသော တာဝန်များကို ပြီးမြောက်စေရန် အထူးစနစ်ညွှန်ကြားချက်များ လိုအပ်မည်ဖြစ်ပါသည်။
စနစ်မက်ဆေ့ချ်များကို မျှတစွာဖြန့်ချိနိုင်ရေးအတွက်၊ လျှပ်တစ်ခု သို့မဟုတ် အများသော ကိုယ်စားလှယ်များအတွက် စနစ်မက်ဆေ့ချ် ဖောင်ကြိုးတစ်ခုကို အသုံးပြုနိုင်ပါသည်။

မက်တာပရောမ့်စ်သည် LLM ကို အသုံးပြု၍ ကိုယ်စားလှယ်များအတွက် စနစ်မက်ဆေ့ချ်များ ဖန်တီးရန် အသုံးပြုမည်ဖြစ်သည်။ ရွေးချယ်ထားသော မျိုးစုံကို ထုတ်လုပ်နိုင်ရန် မျိုးစုံဖန်တီးရေး ပုံစံတစ်ခုအဖြစ် ဒီဇိုင်းရေးဆွဲထားသည်။
LLM အတွက် ပြုလုပ်မည့် မက်တာစနစ်မက်ဆေ့ချ် ဥပမာက အောက်ပါအတိုင်းဖြစ်သည်-
You are an expert at creating AI agent assistants.
You will be provided a company name, role, responsibilities and other
information that you will use to provide a system prompt for.
To create the system prompt, be descriptive as possible and provide a structure that a system using an LLM can better understand the role and responsibilities of the AI assistant.
နောက်တစ်ဆင့်မှာ AI ကိုယ်စားလှယ်ကို ဖော်ပြရန် အခြေခံပရောမ့်စ် တစ်ခု ဖန်တီးရမည် ဖြစ်သည်။ မိမိ၏ ကိုယ်စားလှယ်၏ တာဝန်၊ ပြီးမြောက်ရမည့် လုပ်ဆောင်ချက်များနှင့် တာဝန်လက်ခံရမည့် အခြားတာဝန်များကို ထည့်သွင်းရန် လိုအပ်ပါသည်။
ဥပမာ -
You are a travel agent for Contoso Travel that is great at booking flights for customers. To help customers you can perform the following tasks: lookup available flights, book flights, ask for preferences in seating and times for flights, cancel any previously booked flights and alert customers on any delays or cancellations of flights.
ယခုအခါ မက်တာစနစ်မက်ဆေ့ချ်ကို စနစ်မက်ဆေ့ချ်အဖြစ်နှင့် ကျွန်ုပ်တို့၏အခြေခံ စနစ်မက်ဆေ့ချ်နှစ်ခုကို ပေါင်းစပ်ထည့်သွင်း၍ ဒီစနစ်မက်ဆေ့ချ်ကို တိုးတက်အောင် ပြုပြင်နိုင်ပါပြီ။
ဒါကြောင့် AI ကိုယ်စားလှယ်များကို ဦးတည်ပေးမည့် စနစ်မက်ဆေ့ချ်ကောင်း တစ်ခုရရှိပါမည်-
**Company Name:** Contoso Travel
**Role:** Travel Agent Assistant
**Objective:**
You are an AI-powered travel agent assistant for Contoso Travel, specializing in booking flights and providing exceptional customer service. Your main goal is to assist customers in finding, booking, and managing their flights, all while ensuring that their preferences and needs are met efficiently.
**Key Responsibilities:**
1. **Flight Lookup:**
- Assist customers in searching for available flights based on their specified destination, dates, and any other relevant preferences.
- Provide a list of options, including flight times, airlines, layovers, and pricing.
2. **Flight Booking:**
- Facilitate the booking of flights for customers, ensuring that all details are correctly entered into the system.
- Confirm bookings and provide customers with their itinerary, including confirmation numbers and any other pertinent information.
3. **Customer Preference Inquiry:**
- Actively ask customers for their preferences regarding seating (e.g., aisle, window, extra legroom) and preferred times for flights (e.g., morning, afternoon, evening).
- Record these preferences for future reference and tailor suggestions accordingly.
4. **Flight Cancellation:**
- Assist customers in canceling previously booked flights if needed, following company policies and procedures.
- Notify customers of any necessary refunds or additional steps that may be required for cancellations.
5. **Flight Monitoring:**
- Monitor the status of booked flights and alert customers in real-time about any delays, cancellations, or changes to their flight schedule.
- Provide updates through preferred communication channels (e.g., email, SMS) as needed.
**Tone and Style:**
- Maintain a friendly, professional, and approachable demeanor in all interactions with customers.
- Ensure that all communication is clear, informative, and tailored to the customer's specific needs and inquiries.
**User Interaction Instructions:**
- Respond to customer queries promptly and accurately.
- Use a conversational style while ensuring professionalism.
- Prioritize customer satisfaction by being attentive, empathetic, and proactive in all assistance provided.
**Additional Notes:**
- Stay updated on any changes to airline policies, travel restrictions, and other relevant information that could impact flight bookings and customer experience.
- Use clear and concise language to explain options and processes, avoiding jargon where possible for better customer understanding.
This AI assistant is designed to streamline the flight booking process for customers of Contoso Travel, ensuring that all their travel needs are met efficiently and effectively.
ဤ စနစ်မက်ဆေ့ချ် ဖောင်ကြိုး၏ တန်ဖိုးမှာ၊ အများအပြားကိုယ်စားလှယ်များအတွက် စနစ်မက်ဆေ့ချ်များ ဖန်တီးရာတွင် ပိုမိုမိုက်ကယ်အောင် လုပ်နိုင်ခြင်းနှင့် စနစ်မက်ဆေ့ချ် များကို အချိန်ဖြင့် ဆက်လက် တိုးတက်ပြုပြင်နိုင်ခြင်း ဖြစ်သည်။ သင့် အသုံးပြုမှု၏ ပထမဆုံး ကြိမ်အောင်မြင်သော စနစ်မက်ဆေ့ချ်ရရှိသည့် ထူးခြားမှုမကြုံနိုင်ကြ၊ အခြေခံ စနစ်မက်ဆေ့ချ်ကိုကျယ်ပြန့်စွာ ပြုပြင်၍ စနစ်မှန် မှတဆင့် လည်ပတ်ခံစားချက်များနှင့် ဆိုင်ရာ အသုံးအနှုန်းများကို နှိုင်းယှဉ်သုံးသပ်နိုင်ခြင်း အားသာချက် ရှိပါသည်။
ယုံကြည်စိတ်ချရသော AI ကိုယ်စားလှယ်များ တည်ဆောက်ရန်အတွက်၊ ကိုယ်စားလှယ်အပေါ် ရှိနိုင်သော အန္တရာယ်နှင့် ထိခိုက်မှုများကို နားလည်ခြင်းဖြင့် ပြသနာဖြေရှင်းရမည်ဖြစ်သည်။ AI ကိုယ်စားလှယ်များ အပေါ် ရှိနိုင်သော အန္တရာယ်အချို့ကိုသာ ကြည့်ရှုကြပြီး၊ သင့် အစီအစဉ်နှင့် ပြင်ဆင်မှုများကို အကောင်းဆုံး ရယူနိုင်အောင်လေ့လာကြရအောင်-

ဖော်ပြချက်: ကြမ်းပြင်သူများသည် prompting သို့မဟုတ် input တွေကို လိမ်လည် ပြောင်းလဲခြင်းဖြင့် AI ကိုယ်စားလှယ်၏ ညွှန်ကြားချက်များ သို့မဟုတ် ရည်မှန်းချက်များကို ပြောင်းလဲရန် ကြိုးစားကြသည်။
ကာကွယ်ခြင်း: AI ကိုယ်စားလှယ်မှ လက်ခံမည့် prompt များအား စစ်ဆေးမှုနှင့် input စစ်ထုတ်မှုများ ပြုလုပ်ကာ အန္တရာယ်ရှိနိုင်သည့် prompts များကို တားဆီးပါ။ ၎င်းတိုင်းပြီးတော့ Agent နှင့် အကြိမ်ကြိမ် ဆက်သွယ်ရခြင်းများ လျော့နည်းရန် စကားပြော အကြိမ်ရေကို နှိမ့်ချခြင်းဖြင့် ထိုအမျိုးအစား တိုက်ခိုက်မှုများကို ကာကွယ်နိုင်သည်။
ဖော်ပြချက်: AI ကိုယ်စားလှယ်သည်-sensitive ဒေတာ သိမ်းဆည်းထားသော စနစ်များနှင့် ဝန်ဆောင်မှုများကို ဝင်ရောက်အသုံးပြုနိုင်ပါက၊ ကြမ်းပြင်သူများသည် AI ကိုယ်စားလှယ်နှင့် ထိုဝန်ဆောင်မှုများအကြား ဆက်သွယ်မှုကို လုယူပြုလုပ်နိုင်ပါသည်။ ၎င်းသည် တိုက်ခိုက်မှုတိုက်ရိုက်ဖြစ်နေခြင်း သို့မဟုတ် ကိုယ်စားလှယ်မှ စနစ်များအကြောင်း သတင်းအချက်အလက် ရယူရန် ကြိုးစားမှုဖြစ်နိုင်သည်။
ကာကွယ်ခြင်း: AI ကိုယ်စားလှယ်များသည် စနစ်များအား လိုအပ်သလောက်သာ ဝင်ရောက်ခွင့်ရှိစေရန် အသုံးပြုသင့်ပြီး၊ အဆိုပါစနစ်နှင့် ကိုယ်စားလှယ်အကြား ဆက်သွယ်မှုသည် လုံခြုံမှုပြည့်စုံရမည်။ အထောက်အထား ဂေဟစနစ်နှင့် ဝင်ရောက်ခွင့်ထိန်းချုပ်မှုတွေကို လက်တွေ့မှုပေးပါ။
ဖော်ပြချက်: AI ကိုယ်စားလှယ်သည် တာဝန်ဆောင်ရန် ကိရိယာနှင့်ဝန်ဆောင်မှုများကို အသုံးပြုနိုင်ပါသည်။ ကြမ်းပြင်သူများ သုံးစွဲမှုအား အသုံးပြု၍ AI ကိုယ်စားလှယ်အားဖြင့် ငွေကြေးအားလုံးသုံး၍ အမြတ်ထုတ်ရန် အတု ကန့်သတ်မှု မရှိသော request များ ပေးပို့နိုင်ပြီး စနစ်ကျဆင်းခြင်း သို့မဟုတ် အလွန်ကြီးမားသော ကုန်ကျစရိတ်များ ဖြစ်ပေါ်စေနိုင်သည်။
ကာကွယ်ခြင်း: AI ကိုယ်စားလှယ်သည် ဝန်ဆောင်မှုတစ်ခုစီသို့ တောင်းဆိုချက်အရေအတွက်ကို ကန့်သတ်ရန် မူဝါဒများ ထည့်သွင်းကာကွယ်ပါ။ စကားပြောအကြိမ်နှုန်းနှင့် တောင်းဆိုချက် အရေအတွက်ကို လေးနက်စွာ ဆန်းစစ်ပြီး တားဆီးခြင်းဖြင့် ဒီအမျိုးအစား တိုက်ခိုက်မှုများ ကာကွယ်နိုင်သည်။
ဖော်ပြချက်: ဤအမျိုးအစား တိုက်ခိုက်မှုသည် AI ကိုယ်စားလှယ်ကို တိုက်ရိုက် မညွှန်းပေ၊ သိုင်းထားသော အသိပညာအခြေခံနှင့် ၎င်းနှင့် သက်ဆိုင်သော ဝန်ဆောင်မှုများအားပစ်မှတ်ထားသည်။ သတင်းအချက်အလက်များအား ပျက်စီးခြင်းကဲ့သို့ဖြစ်စေခြင်းကြောင့် အသုံးပြုသူထံ မတည့်ညီသော တုံ့ပြန်ချက်များ ထွက်ရှိနိုင်သည်။
ကာကွယ်ခြင်း: AI ကိုယ်စားလှယ် အသုံးပြုမည့် ဒေတာများကို အကြိမ်ကြိမ် စစ်ဆေးခြင်း ပြုလုပ်ပါ။ ၎င်းဒေတာများ ဝင်ရောက်ကြည့်ရှုမှု သာယာစွာ လုပ်ဆောင်နိုင်ပြီး ယုံကြည်ရသော သူများမှသာ ပြင်ဆင်နိုင်ရန် စနစ်ထားပါ။
ဖော်ပြချက်: AI ကိုယ်စားလှယ်သည် စနစ်များ နဲ့ ကိရိယာပေါင်းများစွာ အသုံးပြုကာ တာဝန်ထမ်းဆောင်သည်။ တိုက်ခိုက်သူများကြောင့် ဖြစ်ပေါ်သည့် မှားယွင်းမှုများကြောင့် AI ကိုယ်စားလှယ် သက်ဆိုင်သော အခြားစနစ်များ မလုပ်ဆောင်နိုင်ခြင်း၊ ထိုတိုက်ခိုက်မှုများ သိုက်သိုက်နှောင့်နှေးခြင်း ဖြစ်ပေါ်နိုင်ပြီး ဖြေရှင်းရန်ပိုခက်ခဲလာသည်။
ကာကွယ်ခြင်း: AI ကိုယ်စားလှယ်အား ကန့်သတ်ထားသော ပတ်ဝန်းကျင်၌ လည်ပတ်စေခြင်းဖြင့် တိုက်ရိုက်စနစ်တိုက်ခိုက်မှုများကို ကာကွယ်နိုင်သည်။ ဥပမာ - Docker container မှာ လုပ်ဆောင်ခြင်း။ နောက်ဆုံးအဆင့်အဖြစ် သတ်မှတ်ထားသော စနစ်တစ်ခုပြန်လည် အလုပ်မလုပ်သည့်အခါ fallback mechanism နှင့် ပြန်လည်ကြိုးစားသည့် logic ရှိစေရန် ထည့်သွင်းထားခြင်းဖြစ်သည်။
ယုံကြည်စိတ်ချရသော AI ကိုယ်စားလှယ်စနစ်များ တည်ဆောက်ရာ၌ လူက အပြန်အလှန် မှတ်ချက်ပေးနိုင်သည့် စနစ် (Human-in-the-loop) သုံးခြင်း ကောင်းမွန်သောနည်းလမ်းတစ်ခုဖြစ်သည်။ ဤကဲ့သို့စနစ်သည် အသုံးပြုသူများအား AI ကိုယ်စားလှယ်များ လည်ပတ်စဉ် ပုံစံတစ်ခုအတိုင်း ဆောင်ရွက်မှုအား မှတ်ချက်ပေးခွင့် ပေးသည်။ အသုံးပြုသူများသည် နှစ်ယောက် 이상ကိုယ်စားလှယ်ရောစပ်ထားသော စနစ်အတွင်း ကိုယ်စားလှယ်အဖြစ် လက်ခံ၍ လည်ပတ်မှုကို ခွင့်ပြုခြင်း သို့မဟုတ် ထုတ်ပယ်ရန် လုပ်ဆောင်သည်။

အောက်မှာ Microsoft Agent Framework ကို အသုံးပြု၍ အဆိုပါ အယူအဆ ကို ကွတ်ဒ်နမူနာဖြင့် ပြထားသည်-
import os
from agent_framework.azure import AzureAIProjectAgentProvider
from azure.identity import AzureCliCredential
# လူသား အတည်ပြုမှု ပါဝင်သော provider ကို ဖန်တီးပါ
provider = AzureAIProjectAgentProvider(
credential=AzureCliCredential(),
)
# လူသား အတည်ပြုခြင်း အဆင့် ပါဝင်သော စက်ရုပ်ကို ဖန်တီးပါ
response = provider.create_response(
input="Write a 4-line poem about the ocean.",
instructions="You are a helpful assistant. Ask for user approval before finalizing.",
)
# အသုံးပြုသူသည် တုံ့ပြန်ချက်ကို ပြန်လည်သုံးသပ်ပြီး အတည်ပြုနိုင်သည်
print(response.output_text)
user_input = input("Do you approve? (APPROVE/REJECT): ")
if user_input == "APPROVE":
print("Response approved.")
else:
print("Response rejected. Revising...")
ယုံကြည်စိတ်ချရသော AI ကိုယ်စားလှယ်များတည်ဆောက်ရူရန် သေချာစွာ ဒီဇိုင်းရေးဆွဲခြင်း၊ ခိုင်မာသော လုံခြုံရေးကာကွယ်မှုများ ရှိခြင်း၊ နောက်ဆက်တွဲဖြစ်သော ပြုပြင်ဆင်ခြင်းများ လိုအပ်ပါသည်။ စနစ်ဆိုင်ရာ မက်တာပရောမ့်စ် စနစ်များ တည်ဆောက်ခြင်း၊ ဖြစ်နိုင်မည့် အန္တရာယ်များ နားလည်ခြင်းနှင့် အန္တရာယ်ကာကွယ်ရေးဆိုင်ရာ ရှင်းလင်းပုံများ လက်တွေ့အသုံးပြုခြင်းအားဖြင့် ဖန်တီးသူများသည် လုံခြုံပြီးထိရောက်သော AI ကိုယ်စားလှယ်များကို ပြုလုပ်နိုင်ပါသည်။ ထို့အပြင် လူ-လက်ထဲ သက်ဆိုင်မှု (human-in-the-loop) ကို လက်တွဲအသုံးပြုခြင်းသည် AI ကိုယ်စားလှယ်များကို အသုံးပြုသူလိုအပ်ချက်နှင့် ကိုက်ညီစွာ ထိန်းသိမ်းရန် နှင့် အန္တရာယ်များ လျော့နည်းစေရန် အိမ်သုံးရောင်းခိုင်မာစေသည်။ AI နည်းပညာများအရပ်ရပ် ဆက်လက်တိုးတက်လာသည့်အတိုင်း လုံခြုံမှု၊ မူဝါဒနှင့် ကျင့်စဉ်ဆိုင်ရာ စဉ်ဆက်မပြတ် အသိပညာရှိသည့် အခြေအနေက AI စနစ်များအပေါ် ယုံကြည်မှုနှင့် ယုံကြည်စိတ်ချမှု တည်ဆောက်ရာတွင် အရေးကြီးပါသည်။
အခြားလေ့လာသူများနှင့် တွေ့ဆုံ၊ ရုံးချိန်များ သို့တက်ရောက်၍ သင့် AI ကိုယ်စားလှယ် မေးခွန်းများကို ဖြေရှင်းလိုပါက Microsoft Foundry Discord တွင် ဝင်ရောက်ဆုံဆည်းပါ။
ပယ်ချသတိပေးချက်
ဤစာတမ်းကို AI ဘာသာပြန်ဝန်ဆောင်မှု Co-op Translator ဖြင့် ဘာသာပြန်ခဲ့ပါသည်။ ကျနော်တို့သည် တိကျမှန်ကန်မှုကို ကြိုးစားသည်မှာ ဖြစ်သော်လည်း၊ အလိုအလျောက်ဘာသာပြန်မှုတွင် အမှားများ သို့မဟုတ် မမှန်ကန်မှုများ ပါဝင်နိုင်ကြောင်း သတိပြုရန် ဖြစ်ပါသည်။ မူရင်းစာတမ်းကို သူ၏မူရင်းဘာသာဖြင့်မှ စစ်မှန်သောအရင်းအမြစ်အဖြစ် ယူဆရန် သင့်တော်ပါသည်။ အရေးပေါ်သတင်းအချက်အလက်များအတွက် မိမိတို့ လူ့ဘာသာပြန် အတတ်ပညာရှင်၏ ဘာသာပြန်ချက်ကို အကြံပြုပါသည်။ ဤဘာသာပြန်ချက်အသုံးပြုမှုကြောင့် ဖြစ်ပေါ်နိုင်သော မသဘောတူမှုများ သို့မဟုတ် မှားယွင်းဖတ်ရှုမှုများအတွက် ကျနော်တို့ တာဝန်မဆောင်ပါ။