PulseAugur
EN
LIVE 18:03:32

Anthropic, OpenAI prompt engineering styles differ on delimiters

Prompt engineering guidance from Anthropic and OpenAI differs, with Anthropic recommending XML tags and OpenAI favoring Markdown headings. This distinction arises because language models do not parse prompts like code; instead, the effectiveness of delimiters is learned from training data. The choice of delimiter impacts token cost, as XML tags can consume more tokens than Markdown headings, making the latter more economical for frequent prompts. AI

IMPACT Highlights how prompt structure influences model behavior and token costs, impacting efficiency for AI operators.

RANK_REASON The item discusses prompt engineering best practices and differences between two major AI labs, offering analysis rather than a new release or event.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Anthropic, OpenAI prompt engineering styles differ on delimiters

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Multigrid ·

    Rewriting XML-Delimited Prompts for a Model That Does Not Favour XML

    <p>Anthropic’s prompt engineering documentation recommends structuring prompts with XML tags; OpenAI’s guidance leans on clear section delimiters such as markdown headings and triple quotes. Both are describing a learned preference, not a parser. Converting between them is straig…