Few-shot thread: teaching models JSON extraction with input-output pairs
bigaiguy · x · 2026-10-08
From bigaiguy's few-shot prompting thread: 3 generic example outputs won't yield extraordinary results — pick examples that precisely demonstrate tone, structure, length, formatting, and level of detail. Includes an extraction use case: given input sentences like "John bought 3 books for $45.", the model follows example pairs to emit JSON and can apply the same structure to new sentences.
Related event: bigaiguy's Few-Shot Prompting Thread: Examples Beat Long Descriptions(9 posts)→
More from Apps
- Dev open-sources Game Summoner, a multi-agent pipeline that turns prompts into playable games — demonicpigg · 2026-10-09
- ChatGPT audited 14k transactions in an hour, fixing 700 budget categories — nickbaumann_ · 2026-10-09
- AI Agent Creates Explainer Videos for All 722 OpenAI Math Preprints, 93 Hours Total — jeffgrimes9 · 2026-10-09
- 3 engineers, $1M and 1.5T tokens: Compound V2 rebuilds Office suite for AI agents — peterjliu · 2026-10-09
- Building a synth baroque suite generator with Claude: 'another piece, maestro' and it composes — guillermosan · 2026-10-09
- Grok Bot Spots and Cancels Forgotten Meetings While Rivals Muse and Dot Stay Silent — elonmusk · 2026-10-09