RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /Courses
  5. /Prompt Engineering Fundamentals
  6. /Ch. 14
Prompt Engineering Fundamentals

14. Model-Specific: DeepSeek

Chapter 14 of 25 · 15 min
KEY INSIGHT

Directives about cognitive process yield better results than directives about output format when working with DeepSeek models. ```python # Inferior pattern: outcome description prompt = "Summarize this document in five bullet points covering key findings." # Superior pattern: explicit reasoning framework prompt = """Analyze the document in two stages: Stage 1: Identify factual claims, methodology statements, and conclusions Stage 2: Synthesize findings into themes not explicitly stated in the source Format output as five bullets where each bullet contains one synthesized theme.""" ``` This pattern works because DeepSeek models route through reasoning heads that weight process instructions higher than format specifications. When a user reports that DeepSeek "ignores formatting rules," the root cause is usually format-first phrasing rather than missing constraint enforcement. **Common failure mode:** Using markdown formatting symbols (`, **`, `###`) as primary directives. DeepSeek models deprioritize styling tokens during output construction. A prompt reading "Use bold text for the final answer" frequently results in bold markers being omitted entirely. The corrective approach wraps the output structure in explicit conditional logic: "If your final answer is X, then its representation will be [X]." ```python # This pattern often fails """ IMPORTANT: Bold the main conclusion. Use headers for each section. """ # This pattern consistently succeeds """ Structure: [SECTION_NAME] markers indicate sections. The content after [CONCLUSION] must be the single answer. Rules: No markup inside brackets. Content flows after brackets. """ ``` Tested on DeepSeek V3 via API, stage-based prompts produced correctly structured output in 87% of 200 trials. Format-first prompts using only markup directives achieved 31% structural compliance.

DeepSeek models respond to systematic prompting patterns that exploit their training characteristics. Unlike models trained primarily on instruction-following data, DeepSeek V3 and R1 models excel when given explicit reasoning frameworks rather than outcome descriptions alone.

EXERCISE

Take an existing prompt targeting another model and rewrite it using stage-based structure. Test both versions with DeepSeek and document structural compliance differences in a shared test set of 10 queries.

← Chapter 13
Model-Specific: Qwen
Chapter 15 →
Tree-of-Thought