Evaluating and refining prompts · Question 40 of 60
Many generated scripts fail because the LLM outputs explanatory text before and after the code. Which prompt change helps most?
1 answer is correct. Medium Created with AI
Show answer
Answer
- D Require a fixed output format: code only, without accompanying text
Explanation
The analysis shows a clear type of error: format problems. A clear format specification in the prompt fixes them and raises the execution success rate.