When a manuals assistant gives a wrong pressure limit, "the AI is wrong" is not a finding. A trace is how you find the step that failed. Tools such as LangSmith, covered in the course, record every stage of a request: the user question, any rewritten query, the passages retrieved with their scores, the final prompt sent to the model, the answer, the time taken and the tokens used.
A walk-through of a typical investigation on an engineering assistant:
- Open the trace for the failed question and read the retrieved passages first. Is the correct table row there at all?
- If it is missing, the fault is in retrieval: check whether the table was split across chunks or flattened into unreadable text during PDF extraction.
Read moreRead less
- If the right row was retrieved, look at the prompt the model actually received. Was the row near the end of a long context, crowded out by less relevant text?
- If the prompt was fine and the answer still wrong, it is a generation fault: the model misread or rounded the value. Add the case to your regression set and test a stricter instruction to quote figures exactly.
- Rerun the same question several times and compare traces, because a fault that appears one run in five needs a different fix from one that appears every time.
Save the trace links in your defect reports. Developers fix trace-backed bugs far faster, and a portfolio that shows this habit tells a reviewer you test systems, not just screens.
For practice, deliberately break your own SOP assistant in each of these ways, one at a time: remove a table row from the index, bury the right chunk under irrelevant text, and loosen the instruction about quoting figures. Then confirm that the trace points to the correct layer each time. Knowing what each failure looks like in a trace makes real investigations much faster.