protologue

Prefill

Also called response prefilling, output priming, assistant prefill.

Prefill is the technique of writing the first part of the model's response yourself, so that the model continues from that text and is steered into a specific format or direction.

Description

Starting the assistant turn with an opening brace pushes the model toward JSON output, and starting with a heading or a character's name can enforce structure or persona. Support is model-specific and declining. Anthropic's documentation states that, starting with Claude 4.6 models, requests that prefill the final assistant turn return an error, while earlier models still accept them and assistant messages elsewhere in the conversation are unaffected. It gives migration guidance for common uses, such as controlling output format and eliminating preambles, mostly through explicit instructions.

Sources

  1. Anthropic (2026). Prompting best practices.

Cite this entry

Protologue. (2026). Prefill. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.7.0, PTL-0015). https://protologue.com/t/prefill/

BibTeX
@misc{protologue_prefill,
  title = {Prefill},
  author = {{Protologue}},
  year = {2026},
  howpublished = {Protologue: A Taxonomy of Prompting and LLM Techniques, v1.7.0},
  note = {Entry PTL-0015},
  url = {https://protologue.com/t/prefill/}
}

Markdown JSON