Controlling Long Answers from GLM: Sectioned Delivery and Word Limits

2026-11-12 · Prompt Optimization

The most common failure with long-form generation isn't that the model can't write long — it's that it can't stop. Three thousand words where two thousand are warm-up, key points drowned in padding; or everything dumped in one go, with messy formatting and endless paragraphs that are painful to review. For long answers on GLM, the fix is simple: pin structure and length with explicit, separate instructions. GLM responds well to structured prompts, and in both Chinese and English it follows formatting instructions closely — give it a structure and it will stick to it. Everything below can be pasted straight into the playground.

Why "write more detail" doesn't work

Vague instructions like "be more detailed" force the model to guess. Your "detailed" might mean 3,000 words; its interpretation might be 1,200. Word limits need concrete numbers, and they work best combined with structure: specify how many sections and how many words per section. In practice, "300 words per section" gives you more control than "3,000 words total," because the model self-regulates section by section instead of writing long at the start and rushing the end.

Sectioned delivery: skeleton first, then flesh

A more reliable approach is splitting long tasks into two rounds. Round one: ask for an outline only, and confirm the structure. Round two: generate section by section following that outline. Each output stays short and easy to review, and revisions don't require rewriting everything. For very long content (say, a 10,000-word proposal), use "only output Section X, stop when done" in round two and work through it piece by piece. GLM's conversational memory handles this multi-round flow well, and tweaking a single section mid-way is easy.

Template 1: single-pass long text with per-section word limits

For medium-length one-shot output — paste and change the topic:

You are an experienced [domain] writer. Write a structured long-form piece on the topic "[your topic]".

Hard requirements:
1. Structure the piece into 4 sections with ## headings: [Title 1], [Title 2], [Title 3], [Title 4].
2. Each section's body must be 300–400 words. Do not exceed this.
3. No introduction — start directly with Section 1.
4. Each section must include at least one concrete example or data point (mark uncertain data as "to verify").
5. End with 2–3 closing sentences, without a "Summary" heading.
6. Language: English (switchable to Chinese).

Stop after the piece is complete. Add no extra commentary.

The key is items 2 and 6: word ranges work better than exact counts, and "stop after completion" suppresses the habit of tacking on a closing remark.

Template 2: two-round sectioned delivery (outline first, then body)

For 10,000-word-scale tasks or anything needing iteration:

[Round 1 · outline only]
Task topic: "[your topic]". Output an outline only — no body text.
Format:
- Total of N sections; list each ## heading
- One line per section describing its key points
- Target word count per section

[Round 2 · section by section]
The outline is confirmed. Now write ONLY Section [X], expanding strictly
on the outline's points, within [target words] ±10%.
Stop immediately after this section and wait for me to say "continue".
If changes are needed, I'll describe them first; then rewrite only the affected section.

The payoff: every section is fresh output with consistent quality, and if the direction is wrong you only rewrite one section — minimal sunk cost.

Practical details

Expect word-count accuracy within roughly ±15%; leave margin for length-sensitive tasks. When switching languages, counts shift (English words and Chinese characters don't map one-to-one), so for English output constrain in words. If you need tables or code blocks, say so explicitly — e.g., "Section X must include a Markdown table" — and GLM will comply. If you're calling via the BigModel API platform, make sure your max tokens parameter is set high enough for long output; otherwise it's not the model "refusing" to write long, it's truncation. Check official docs for exact parameters. The same templates work for docs and comments if you're on the Coding Plan.

Sectioned delivery controls structure; word limits control length. Pin both, and long answers go from a gamble to build-to-spec work. Save both templates in your prompt library, swap in a topic next time you have a long task, and rewrite only the sections you don't like — the efficiency gain is immediate.

本文为使用方法整理,内容选自网上公开资料,供参考;本站为非官方资讯站,产品能力以官方页面为准。