大模型网摘deepseek.wang

Prompt Tutorials · 2026-11-02

The Role-Task-Format Triplet for Your First DeepSeek Prompt

Many people write prompts like casual chat—rambling wherever their thoughts go, leaving the model to guess what they want. In fact, your first prompt only needs three ingredients—role, task, and format—to become dramatically more reliable. Both DeepSeek's V-series general chat and R-series deep reasoning benefit from this structure, but in different ways: the R series doesn't respond to gimmicks; clear, structured constraints work far better than flowery personas. This article gives you paste-ready templates and practical usage notes.

What Each Ingredient Solves

Role solves the "boundary" problem. Telling the model who it is anchors its knowledge scope and tone. Note that for DeepSeek, the role doesn't need to be theatrical—"You are a data analyst" is enough. Skip embellishments like "twenty years of experience, meticulous personality." A reasoning model will figure out how to do the job well on its own; flourishes can dilute the constraints that actually matter.

Task solves the "goal" problem. State in one sentence what to produce, who it's for, and what it will be used for. Mark where input material goes (e.g., "the text below") so the model isn't confused.

Format solves the "deliverable" problem. Specify whether you want a table, a list, or plain text; which fields; how long. DeepSeek follows formatting instructions quite reliably—the more specific you are here, the less post-processing you'll do.

Template 1: Everyday Chat (V-series / reasoning off)

Simple tasks don't need deep reasoning. Weekly reports, copy edits, concept explanations—use this skeleton directly:

[Role] You are an editor familiar with the Chinese internet industry.
[Task] Rewrite the meeting notes below into a weekly-report summary of 300 words or fewer, for department colleagues who didn't attend.
[Format] Three sections: Progress this week (3 bullet points), Risks and blockers (if any), Plans for next week. Use unordered lists. No opening pleasantries or closing remarks.

Meeting notes:
(paste content)

Three labeled lines, done in five. For daily use, copy this structure and swap in your role and task.

Template 2: Complex Reasoning (R-series / reasoning on)

When a task needs multi-step reasoning, math, or comparing options, turn on reasoning mode and write constraints in a more structured way. A deep-reasoning model needs explicit judgment criteria, not pep talks:

[Role] You are a senior backend architect.
[Task] Design a caching strategy for the scenario below and compare the trade-offs of at least two viable approaches.
[Constraints]
1. Scenario: ~100K daily active users, read-heavy, hot keys concentrated in 20% of the key space
2. Must address: cache penetration, expiration policy, consistency with existing MySQL
3. Conclusions must be derived from these constraints; don't recite generic best practices
[Format]
1. First compare approaches in a table (dimensions: implementation cost, consistency risk, operational complexity)
2. After the table, give a recommendation with reasoning, in no more than 200 words

(Any additional context goes at the end)

Note the line "don't recite generic best practices"—it's the key constraint that keeps a reasoning model from producing filler.

Common Pitfall: More Detail Isn't Always Better

A three-paragraph role or five alternative formats makes the model juggle too much. The test is simple: if deleting a constraint wouldn't make the result worse, delete it. Also, when iterating on a prompt, change one thing at a time (say, tighten only the format) so you can tell which change actually helped.

How to Choose Reasoning Mode

DeepSeek lets you toggle reasoning mode (how to toggle varies by entry point—check the official pages). Rule of thumb: for tasks with an obvious answer, copy editing, or format conversion, keep it off for faster responses. For multi-step derivations, code debugging, math proofs, or decisions requiring trade-offs, turn it on. Running reasoning mode on trivial tasks just adds wait time without necessarily improving quality.

Make the triplet muscle memory: before sending any prompt, check—are boundaries clear, is the goal explicit, is the deliverable defined? If all three pass, even a five-line prompt will get you far better results from DeepSeek than a thousand words of fluff.