Skill 1.6.5
Enhance FM performance to refine prompts iteratively and improve response quality beyond basic prompting techniques (for example, by using structured input components, output format specifications, chain-of-thought instruction patterns, feedback loops)
Key Concepts
Structured input separates instructions, context, examples and the question with clear delimiters or XML-style tags, so the model does not confuse data with instructions. Output format specifications state the exact structure, such as a JSON schema, a field list or a word limit. Few-shot examples show the expected pattern. Chain-of-thought instructions ask the model to reason step by step, optionally inside a tag that the application removes before showing the answer.
A feedback loop collects failures from evaluation and user ratings, groups them by cause, changes one aspect of the prompt at a time and re-runs the evaluation set to confirm improvement without regressions. Models that support extended reasoning can be given a reasoning budget instead of explicit chain-of-thought instructions.