返回博客
chatgpt5/8/202610 min read

Prompt Engineering: The Complete Beginner to Advanced Guide

Prompt Engineering: The Complete Beginner to Advanced Guide

Prompt Engineering is the most important skill in the AI era. Someone skilled at writing prompts can extract 10x more value from the same AI model.

1. Basic Principles

Be Specific: The more specific, the better. Instead of "write a blog post", say "write an 800-word blog post for marketers about X".

Give Context: AI knows nothing about you. Provide: context, goals, audience, tone.

Define Output Format: Clearly state what format you want: list, table, JSON, paragraph.

2. Few-Shot Prompting

Providing sample examples helps AI understand requirements correctly:

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
cinematic
ArsMovieStill, 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>
view_detail

3. Chain-of-Thought

Ask AI to think step by step before answering:

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
portrait
Create 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.
view_detail