prompt-tuning
星标13
分支1
更新时间2026年4月7日 20:03
Run a prompt tuning experiment for the text reader extraction pipeline
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Run a prompt tuning experiment for the text reader extraction pipeline
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | prompt-tuning |
| description | Run a prompt tuning experiment for the text reader extraction pipeline |
| allowed-tools | Bash(source:*), Bash(python:*), Read, Write, Edit, Glob, Grep |
Run a prompt tuning experiment using the Message Batches API against a PDF text chunk.
/prompt-tuning [args]
Arguments are passed directly to the experiment script. Common patterns:
/prompt-tuning --runs 5 --label baseline — run baseline with default prompt/prompt-tuning --runs 5 --label v2 --prompt-file text_reader/experiments/prompts/v2.txt — test a prompt variant/prompt-tuning --runs 5 --label test --start-page 534 --end-page 538 — test different pagescd /Users/josh/dev/thehistoryatlas
source env/bin/activate
python text_reader/experiments/prompt_tuning.py $ARGUMENTS
The script:
text_reader/experiments/results/<label>.jsontext_reader/experiments/prompt_tuning.pytext_reader/experiments/prompts/text_reader/experiments/results/text_reader/sources/Grove's_dictionary_of_music_and_musicians_3.pdf.env.local (CLAUDE_API_KEY)Compare results across experiments. The key metric is Valid% — the percentage of extracted events where all entity names (person, place, time) appear as literal substrings in the summary.