界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

flan_instruction_prompt_formatter

flan_instruction_prompt_formatter

【效率与协作】Render FLAN-style direct, few-shot, and chain-of-thought instruction prompt/completion pairs without leaking hidden answers into prompts.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: flan_instruction_prompt_formatter description: Render FLAN-style direct, few-shot, and chain-of-thought instruction prompt/completion pairs without leaking hidden answers into prompts.

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 optional rationale.
  • Mode direct, few_shot, or cot.

Outputs

  • Prompt/completion records and metadata.

Workflow

  1. Build prompts from instruction and input fields.
  2. Put target answers only in completions for query examples.
  3. Put rationale plus final answer in CoT completions.
  4. Record metadata for mechanism checks.

Validation

Run python tests/test_prompt_formatter.py.

Limitations

Uses compact deterministic templates rather than every original FLAN template.

我的收藏