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)→

Original post →

More from Apps

Apps channel →