Example-Based Formatting

Example-Based Formatting

Model: GPT-4
Difficulty: Beginner
Upvotes: 0
data extractionformattingstructured output

โ€” Prompt โ€”

Extract the following entities from this text: [text]. Format output as: Name: , Role: , Company: , Location: .

Why It Works

Uses explicit formatting instructions to ensure outputs are consistent and easy to process.

Example Output

Name: John Smith, Role: Software Engineer, Company: TechCorp, Location: New York