Summarize a document with format (paragraph/bullets) and length (one sentence/short/detailed) knobs — grounded strictly in the input, with key topic tags.
The workhorse: summarize any document with a format knob (paragraph / bullets) and a length knob (one_sentence / short / detailed) — grounded strictly in the input. The prompt never adds outside knowledge, never sharpens a hedge ("may improve" stays "may improve"), and returns key_topics tags you can use for search or routing.
| Entrypoint | Renders | Inputs |
|---|---|---|
system | Summarizer instructions + format/length definitions + embedded output schema | format, target_length |
user | The delimited document + knobs | document, format, target_length |
Render system as the system message and user as the user message. Pass the shared variables to both renders.
document (string, required) — the text to summarize; may be empty.format (string, required) — paragraph (prose) or bullets (markdown - list).target_length (string, required) — one_sentence, short (2–4 sentences / 3–5 bullets), or detailed (2–3 paragraphs / 8–12 bullets).{
"reasoning": "An incident postmortem; at short length the cause, impact, and fix make the cut.",
"summary": "A misconfigured cache caused elevated error rates for 43 minutes on May 3. Rolling back the deploy restored service, and the team added a config lint to prevent recurrence.",
"key_topics": ["incident postmortem", "cache misconfiguration", "rollback"]
}
"Nothing to summarize." with empty key_topics (the published eval asserts it).<document> delimiter.summary-grader judge.Part of the Summarization Essentials collection — pair with key-points-extraction when you need verbatim supporting quotes.