FLAN Instruction Prompt Formatter
Use this skill after mixture construction to format examples for instruction finetuning or held-out evaluation.
Inputs
- Examples with
instruction,input,answer, and optionalrationale. - Mode
direct,few_shot, orcot.
Outputs
- Prompt/completion records and metadata.
Workflow
- Build prompts from instruction and input fields.
- Put target answers only in completions for query examples.
- Put rationale plus final answer in CoT completions.
- Record metadata for mechanism checks.
Validation
Run python tests/test_prompt_formatter.py.
Limitations
Uses compact deterministic templates rather than every original FLAN template.