Few-Shot Prompting
Few-shot prompting is a technique | used with large language models (LLMs) | where you provide a small number | of example input-output pairs
Few-shot prompting là một kỹ thuật | được sử dụng với các mô hình ngôn ngữ lớn (LLMs) | nơi bạn cung cấp một số lượng nhỏ | các cặp ví dụ đầu vào-đầu ra
in the prompt itself. | These examples demonstrate | the desired behavior of the LLM | for a specific task.
ngay trong prompt. | Các ví dụ này minh họa | hành vi mong muốn của LLM | cho một tác vụ cụ thể.
By seeing these “few shots” | of correct answers, | the LLM can better understand | the pattern and generate accurate
Bằng cách nhìn thấy những “few shots” | của các câu trả lời đúng, | LLM có thể hiểu rõ hơn | mô hình và tạo ra các phản hồi chính xác
and relevant responses | for new, unseen inputs.
và phù hợp | cho các đầu vào mới, chưa từng thấy.
Resources
- Few-Shot Prompting (article)
- What is few shot prompting? (article)
- Discover Few-Shot Prompting | Google AI Essentials (video)
References
- https://roadmap.sh/ai-engineer (Node: Few-Shot)