Prompt Engineering là kỹ năng quan trọng nhất trong kỷ nguyên AI. Người giỏi viết prompt có thể khai thác được 10 lần nhiều giá trị từ cùng một AI model.
1. Các Nguyên Tắc Cơ Bản
Be Specific: Càng cụ thể càng tốt. Thay vì "viết bài blog", hãy nói "viết bài blog 800 chữ cho dân marketing về X".
Give Context: AI không biết gì về bạn. Hãy cung cấp: bối cảnh, mục tiêu, đối tượng, tone.
Define Output Format: Nói rõ bạn muốn kết quả ở dạng gì: list, table, JSON, paragraph.
2. Few-Shot Prompting
Cung cấp ví dụ mẫu giúp AI hiểu đúng yêu cầu:
Here are examples of what I want:
Input: [example 1 input] → Output: [example 1 output]
Input: [example 2 input] → Output: [example 2 output]
Now do: [your actual input]
✨ArsMovieStill Fantasy Film Still Shot
cinematicArsMovieStill, 80s fantasy film still, shot on 35mm film. A young woman with porcelain skin, short wavy jet black hair with blunt bangs, and pale blue eyes sits in tall grass leaning against an old stone wall beside a quiet country road on a dark night. She looks up at the stars with a calm, contemplative expression. She wears a cobalt blue peasant dress with yellow floral embroidery, loose flowing cotton fabric, over a white blouse, a red wool shawl, and brown leather ankle boots. Her two hands holding an old lantern that rests in her lap, casting a faint warm glow. Close-up focus on her blue eyes.
Behind her, a misty meadow stretches toward distant rolling hills, with an ancient stone village faintly visible in the valley. Above, a vast indigo night sky with a large blue moon and dense stars. Moonlight dominates the scene with soft cool illumination, balanced by subtle warm lantern highlights.
Cinematic framing, shallow depth of field, natural film grain, soft halation, gentle lens diffusion, slightly imperfect focus, captured mid-scene, atmospheric and grounded. <lora:80sFantasyZBase:0.6>
3. Chain-of-Thought
Yêu cầu AI suy nghĩ từng bước trước khi trả lời:
Think step by step. First analyze [X], then consider [Y],
finally provide your conclusion about [Z].
4. Role-Based Prompting
You are an expert [role] with [X] years of experience in [field].
Your task is to [action]. Consider [constraints].
Respond in [format/tone].
✨Create Image Based Image This
portraitCreate a 3:4 image based on image 1. This is the scene near the sanctuary in Elden Ring. Replace the character on the bottom left with the prisoner from Elden Ring (image 2); he's squatting. Change the face of the girl Melina on the right to that of Serval from the anime Kemono Friends; she will have one eye closed. Add a speech bubble with capital letters that says "Friendless?" to Serval.