日志分流Log triage
输出分流表与证据行;不直接断言根因。
Output a triage table with evidence lines; do not assert root cause directly.
提示词效果未实测。Prompt effect has not been tested.
提示词是可复跑的模板,不是效果承诺。换模型、换版本、换输入都可能改变结果;用本页的检查点自己核对,并把官方出处当作机制依据而不是效果保证。A prompt is a re-runnable template, not a promise of results. Changing the model, version or input can change the outcome. Use the checkpoints on this page to verify it yourself, and treat the official sources as evidence of mechanism rather than a guarantee of effect.
任务与输入Task and inputs
把日志按症状分流并给下一步核对。 输入:日志片段、服务清单、时间窗口。
Output a triage table with evidence lines; do not assert root cause directly. Inputs: Log excerpts, service list, and time window.
提示词本体The prompt
分流日志。输出 groups[]:symptom、service、evidence_lines、next_check。evidence_lines 必须逐字来自日志;next_check 写可执行核对动作。根因只能列 hypothesis,不得写成结论。
占位符用 {字段} 标注,运行前替换为本次输入。
Triage logs. Output groups[] with symptom, service, evidence_lines and next_check. evidence_lines must be verbatim from logs; next_check gives executable checks. Root causes may only be hypotheses, not conclusions.
Replace {field} placeholders with the current inputs before running.
预期输出形态Expected output shape
groups[] 与 hypotheses[]。
groups[] and hypotheses[].
检查点Checkpoints
- 证据行逐字命中。
- next_check 可执行。
- 根因在 hypotheses。
- Evidence lines match verbatim.
- next_check is executable.
- Root causes stay in hypotheses.
失败分支Failure branches
- 日志太多:按时间窗口缩小。
- 症状混在一起:按服务拆分。
- Too many logs: narrow the time window.
- Mixed symptoms: split by service.
出处与边界Sources and limits
提示词效果未实测。机制依据见出处;换模型、版本或输入会改变结果。
This site has not tested the effect of this prompt. See the sources for the mechanism; changing model, version or input can change the result.
出处Sources
| 来源Source | 链接URL |
|---|---|
| OpenAI Cookbook · GPT-4.1 Prompting Guide(官方仓库 raw,2026-11-07 直抓 200)OpenAI Cookbook: GPT-4.1 Prompting Guide (official repository raw, fetched 200 on 2026-11-07) | https://raw.githubusercontent.com/openai/openai-cookbook/main/examples/gpt4-1_prompting_guide.ipynbhttps://raw.githubusercontent.com/openai/openai-cookbook/main/examples/gpt4-1_prompting_guide.ipynb |
资料快照日期:2026-11-07;单项复核范围与日期见对应正文或来源记录。产品功能与条款可能变化,使用前请核对原始来源。Source snapshot: 2026-11-07; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.