โมเดลขนาดใหญ่
พื้นฐานและแนวคิด
พร้อมท์
แปลภาษาจีน : คําบอกล่วงหน้า
คําสั่งสําหรับเครื่อง ภาษาเขียนโปรแกรมคล้ายๆ
Token
แป๊บนึงนะ
แอลเอ็ม
แปลภาษาจีน : โมเดลใหญ่
ธรรมชาติ : ชุดอัลกอริทึม คล้ายๆ ฟังก์ชั่น
แบบจําลองทั่วไป
- OpenAI : GPT-3.5 / GPT-4V / DALL.E Whisper
- Meta: L Lama 2 (โอเพนซอร์ส)
โมเดล GPT
ภาพหลอนของ LLM
เนื่องจากขนาดความรู้ที่โมเดลเผชิญระหว่างการฝึกนั้นมีขนาดใหญ่มาก และไม่สามารถจดจําข้อมูลทั้งหมดเท่าที่เคยเห็นมาได้อย่างสมบูรณ์แบบ ปัญหาหนึ่งที่เห็นได้ชัดก็คือ "โมเดล" นั้นไม่ทราบขอบเขตความรู้ของตนเองเลยแม้แต่น้อย" ศ.นพ.พรเทพ กล่าว. .
นั่นหมายความว่า "โมเดล" อาจสร้างเรื่องขึ้นมาฟังดูน่าเชื่อถือแต่ไม่ใช่คําตอบที่ถูกต้อง "คําตอบที่แต่งขึ้นนี้เราเรียกว่า "ภาพลวงตา" เมื่อตอบเรื่องยากๆ
เช่นตัวอย่างต่อไปนี้ เมื่อเราขอว่า
Sticker
บอกฉันเกี่ยวกับแปรงสีฟันอัจฉริยะ AeroGlide Ultra Slim ของบริษัท Boy
ในกรณีเช่นนี้ โมเดลยังคงให้คําอธิบายผลิตภัณฑ์ที่สมจริงมาก ๆ ว่ามีชื่อบริษัทอยู่ แต่ชื่อผลิตภัณฑ์เป็นนิยายที่เราแต่งขึ้นเอง. . .
ลดการเกิดภาพหลอนนี้ โดย 2 กลยุทธ์ที่อ้างอิงได้คือ
· กลยุทธ์ที่ 1 : ต้องการโมเดลจากข้อความที่นําเสนอเพื่อหาข้ออ้างอิงและตอบคําถาม
- กลยุทธ์ที่ 2 : ย้อนคําตอบไปยังไฟล์ต้นฉบับ
Temperature
แปล: อุณหภูมิ
เป็นอาร์กิวเมนต์ที่พบได้ทั่วไปในโมเดล แต่เลือกค่าได้คือ 0 - 1
· เมื่อ Temperature เป็น 0: ตัวแทนตอบได้แม่นยํากว่า คงที่กว่า เหมาะกับความคาดหวังที่จะได้รับผลลัพธ์ที่เท่ากันทุกครั้ง
- เมื่อ Temperature อยู่ที่ 0.07 : ตัวแทนตอบแบบสุ่ม สร้างสรรค์มากขึ้น เหมาะกับความคาดหวังที่จะได้รับผลลัพธ์ที่แตกต่างกันออกไปทุกครั้ง

ตัวอย่างเช่น เมื่อตอบว่า "อาหารโปรดของฉันคือ." เมื่อคําถามนี้ โอกาสที่อาหารต่าง ๆ จะเกิดขึ้นแตกต่างกัน
เมื่อ Temperature เป็น 0 โมเดลก็จะเลือกอันหนึ่งที่น่าจะเป็นไปได้มากที่สุด คือ พิซซ่า
และเมื่อ Temperature อยู่ที่ 0.3 โมเดลจึงมีโอกาสเลือกอาหารอื่นๆ ที่มีความเป็นไปได้น้อยกว่า
เมื่อ Temperature อยู่ที่ 0.7 โมเดลจึงมีโอกาสเลือกอาหารอื่นๆ ที่มีโอกาสต่ํากว่า
การใช้งานของ LLM
มีสามัญสํานึก
ระบุเจตนา
การจัดหมวดหมู่
ขั้น: เครื่องสถานะ
พารามิเตอร์ของฟังก์ชันเสริม (มาก)
แบบประโยคที่ใช้กันทั่วไปของ Prompt
สรุปทั้งหมด
Summarize
Delimited
Summarize the text delimited by triple quotes.
"""insert text here"""
As follows
If applicable
You will be provided with meeting notes, and your task is to summarize the meeting as follows:
-Overall summary of discussion
-Action items (what needs to be done and who is doing it)
-If applicable, a list of topics that need to be discussed more fully in the next meeting.
พื้นหลัง
You will be provided
You will be provided with xxx (delimited with XML tags) about xxx topic.
First xxx.
Then xxx and xxx.
ลําดับขั้น
Use the following step-by-step instructions to respond to user inputs.
Step 1 - The user will provide you with text in triple quotes. Summarize this text in one sentence with a prefix that says "Summary: ".
Step 2 - Translate the summary from Step 1 into Spanish, with a prefix that says "Translation: ".
ความสอดคล้อง
Answer in a consistent style.
Q: Teach me about patience.
A: The river that carves the deepest valley flows from a modest spring; the grandest symphony originates from a single note; the most intricate tapestry begins with a solitary thread.
Q: Teach me about the ocean.
จํากัดความยาว
แบ่งเป็น 3 จุด
Summarize the text delimited by triple quotes in 3 bullet points.
Summarize the text delimited by triple quotes in 2 paragraphs.
Summarize the text delimited by triple quotes in about 50 words. // 3 个要点
จํากัดขอบเขต
ดีมาก
Draft a company memo to be distributed to all employees. The memo should cover the following specific points without deviating from the topics mentioned and not writing any fact which is not present here:
xxxx
การจัดหมวดหมู่
You will be provided with a tweet, and your task is to classify its sentiment as positive, neutral, or negative.
จําแนกเจตนา
You will be provided with customer service queries. Classify each query into a primary category and a secondary category. Provide your output in json format with the keys: primary and secondary.
Primary categories: Billing, Technical Support, Account Management, or General Inquiry.
Billing secondary categories:
- Unsubscribe or upgrade
- Add a payment method
- Explanation for charge
- Dispute a charge
Technical Support secondary categories:
- Troubleshooting
- Device compatibility
- Software updates
Account Management secondary categories:
- Password reset
- Update personal information
- Close account
- Account security
General Inquiry secondary categories:
- Product information
- Pricing
- Feedback
- Speak to a human
บทบาทและภารกิจ
your task is to xxx it in a concise way.
กระชับ
explain it in a concise way.
ผู้ใช้ปลายทาง
ให้นักเรียนชั้น ป.2
Summarize content you are provided with for a second-grade student.
รูปแบบ
ส่งออกด้วยรูปแบบรายการจุด
Provide your answer in bullet point form.
แสดงผล
- Easy to use
- Provinvood value for the price
- High quality and durability
- difficult to transport
- difficult to store
รายการที่เป็นระเบียบ
A numbered list
create a numbered list of turn-by-turn directions from it.
รูปแบบที่รองรับ
格式类型 | 例子 |
---|---|
编号列表 | 1. 打开浏览器2. 输入网址3. 浏览内容 |
圆点列表 | - 苹果- 香蕉- 橙子 |
表格 | |
代码块 | pythonprint("Hello, world!") |
标题和子标题 | ## 主标题### 子标题 |
JSON格式 | { "name": "John", "age": 30, "city": "New York" } |
思维导图格式 | |
markdown格式 |