Few-Shot Classifier Template

OpenAI Cookbook

Submit a prompt

Overview

Classify items into labeled categories using few-shot examples and confidence scores.

Use cases

Prompt
Copied 0
Classify each item into one label: <<<LABELS>>>.

Examples:
Input: <<<ex1>>> → <<<label1>>>
Input: <<<ex2>>> → <<<label2>>>
Input: <<<ex3>>> → <<<label3>>>

Now classify (return JSON array of {id, label, confidence: high|med|low, why}):
<<<paste items>>>

Can AI?

Alternatives