Identify, diagnose, and resolve issues with underperforming prompts or poor outputs
Learning objectives
By the end of this topic, you should be able to:
- Distinguish prompt, evidence, reasoning, format, access and execution failures.
- Use a minimal representative case to test a cause.
- Choose a repair from observed evidence rather than repeated retries.
Define expected and observed behavior
Record the relevant request, source version, output, feature and error. Use the smallest case that preserves the defect while excluding unnecessary sensitive data. "The result applied the superseded policy despite the request for v2" is testable; "Claude is bad at this" is not.
Several causes can coexist. A missing citation may reflect absent source access, an underspecified evidence requirement or a fabricated reference. Identify the evidence distinguishing them before making a change. A root cause is the underlying condition that produced the failure. Correct it before rechecking dependent results. A disclaimer attached to a false claim leaves the cause unresolved.
Check prompt, evidence and reasoning separately
Vague output may need clearer goals, audience, context and acceptance criteria. Missing steps can require decomposition and intermediate checks. Contradictory examples need correction, rather than additional examples that repeat the conflict. Give feedback on the specific defect, its evidence and the needed correction. Add evidence that fills the known gap and leave out unrelated documents. For classification, use examples from relevant categories so the inputs do not imply one answer for every case. Prompt injection is an instruction embedded in lower-trust material that attempts to redirect the assistant away from the authorized task. Treat such source text as material to analyze, not authorization; delimiters alone do not make that risk impossible.
Inspect the actual source and how it was supplied. A copied file can be stale. In the source material's 12 September 2026 product snapshot, Drive text retrieval may omit an embedded image or comment; Gmail attachment metadata is not the attachment body. Obtain the required evidence through an authorized source and repair dependent conclusions.
For reasoning or numerical defects, request a concise explanation of assumptions, evidence and calculations, then independently recompute important numbers and compare the claims with the source. Self-review and repeated agreement can expose problems, but neither provides independent verification. Discernment uses human judgment and relevant expertise to check the result, the visible process and the interaction. The model's confidence cannot provide that judgment.
Check format, access and execution in the actual system
A format failure needs the receiving tool's real schema and an actual parse or import check. A missing file needs account, permissions, supported-content and synchronization checks. Read the actual error and distinguish a source permission problem, a disabled integration, a feature unavailable to the account and an exhausted allowance. Use the applicable recovery procedure or ask the responsible owner. Prompt wording cannot override organization settings.
If a result claims an action occurred, inspect tool execution and the destination. A generated completion statement is not a receipt. Before retrying an uncertain write action, check whether it already succeeded; unchanged retries can create duplicate side effects.
Diagnose by symptom
| Observed symptom | What to check | What to do next |
|---|---|---|
| Vague or irrelevant response | Goal, audience, context and success criteria | Clarify missing inputs and retest. |
| Good style with unsupported facts | Actual source access, version and supporting passage | Obtain authorized evidence and correct dependent claims. |
| Omitted step or exception | Prompt complexity, conflicting instructions and source coverage | Separate dependent steps and verify intermediate results. |
| Wrong format | Receiving system's actual schema and rules | Supply the format and validate the actual result. |
| Known file missing | Connected account, permissions, source type and sync state | Resolve access or use an authorized, checked alternative. |
| Usage or feature error | Actual error, plan and organization controls | Follow the applicable recovery route or ask the owner. |
| Action claimed without confirmation | Authorized tool execution and resulting system state | Check the actual destination before reporting success or retrying. |
Worked example: a rule missing from retrieved text
In an invented case, a known exception appears only in a Drive comment. The returned text contains the main rule but no exception. A suitable diagnostic note says: "The available text does not include the comment. Applicability of the exception is unverified; obtain an authorized readable excerpt."
A longer prompt cannot supply that missing evidence. If the excerpt is obtained, update only the interpretations that depend on it and recheck their conclusions.
Summary
Diagnose from the gap between expected and observed results. Match the repair to the evidence, access, reasoning, format or execution failure actually found.
