用英语给 GLM 提问:更精确的英文提示词写法

2026-11-30 · 提示词优化

很多人习惯了中文提问,切到英文就松散——一句话丢过去,指望模型自己猜。其实 GLM 本身中英文能力都很扎实,英文提示词写得精确,输出的代码、翻译、摘要质量会明显更稳。这篇给你几套能直接粘贴的英文模板,加上几个常见坑,照着改就能用。

先说英文提示词和中文的差异

中文提示词里,一些模糊表达模型能靠上下文兜住;英文里语序和指代更容易歧义。三个实用原则:

  • 指令放前面,材料放后面。英文习惯 command-first,比如 Summarize the following text in 3 bullet points: 然后换行贴文本,比先贴一大段再补一句要求效果好。
  • 限定词要具体。「short answer」不如「answer in no more than 50 words」;「formal tone」不如「use a neutral professional tone suitable for a business email」。
  • 明确输出格式。英文提示词里直接写 Output format: JSON 或 Return a markdown table with columns X and Y,GLM 会老老实实照做。

通用任务模板

这个模板适合大多数日常任务:写作、改写、解释、摘要。把尖括号里的内容替换掉即可。

You are a professional English writing assistant.

Task: <rewrite / summarize / explain / translate the text below>
Audience: <e.g. non-technical readers / hiring managers>
Tone: <e.g. neutral, professional, friendly>
Length: <e.g. around 120 words>
Output format: <e.g. plain paragraphs / markdown bullet list>

Constraints:
- Keep the original meaning intact.
- Do not add information that is not in the source.

Text:
<paste your text here>

要点是「Constraints」这一栏:把你不希望发生的事写清楚,比只描述想要什么更能压住模型的发挥。

代码任务模板(配合 GLM 的编码能力)

GLM 系列的代码能力和工具调用是公认强项,无论你在网页体验场里试用,还是走 BigModel API 或 Coding Plan 在编辑器里接入,下面这个模板都适用:

You are a senior software engineer.

Task: <fix this bug / add a feature / refactor the function>
Language & version: <e.g. Python 3.12 / TypeScript + React>

Requirements:
- Return the complete modified code, not just the diff.
- Add brief inline comments only where logic is non-obvious.
- After the code, list any assumptions you made.

Current code:

<paste code here>

Error message (if any):
<paste error here>

注意「list any assumptions you made」这一句——它会逼模型把没说清的前提亮出来,你一眼就能发现哪句话有歧义。

Agent 与工具调用场景的英文写法

GLM 支持工具调用与 agent 能力,如果你在写系统提示词(system prompt),英文的结构化写法收益很大。一个可复用的骨架:

You are an agent that helps users <goal>.

Available tools:
- tool_name_1: <one-line description of what it does>
- tool_name_2: <description>

Rules:
1. If the request can be answered without tools, answer directly.
2. Before calling a tool, state in one sentence why you are calling it.
3. If required parameters are missing, ask the user instead of guessing.
4. Final answers must be in <language> and under <N> words.

第 2 条「state why」尤其有用,方便你调试时看到模型的决策路径。

三个常见坑

1. 别混用两种语言的指令。提示词一半英文一半中文,输出语言容易飘。想固定输出中文,就写一行 Respond in Simplified Chinese. 2. 负向指令换成正向指令。「Don't be verbose」效果一般,改成「Keep each answer under 80 words」更可控。 3. 长材料先给结构。贴长文档前加一句 The text below is divided into sections by '---',模型定位信息会更准。

具体参数、模型名称与功能入口,以 GLM 官方页面为准。把上面三个模板存下来,下次英文提问直接粘贴替换,输出稳定性会有肉眼可见的提升。

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