Technique #3: Examples in Prompts: From Zero-Shot

A shared folder with AI prompts and code snippets

From workspace: Learn Prompting

Team: Main

Total snippets: 7

Learn Prompting

Technique #3: Examples in Prompts: From Zero-Shot

7 snippets

One-Shot Sentiment Classification Prompt

Includes one labeled example before the target inputs

Classify the sentiment of the following text as positive, negative, or neutral. Text: The product is terrible. Sentiment: Negative Text: I think the vacation was okay. Sentiment:

Few-Shot JSON Style Classification Prompt

Classifies short text inputs in JSON key-value format.

"Great product, 10/10": {"label": "positive"} "Didn't work very well": {"label": "negative"} "Super helpful, worth it": {"label": "positive"}

Zero-Shot Sentiment Classification Prompt

Classifies the sentiment of a single text with no examples provided.

Classify the sentiment of the following text as positive, negative, or neutral. Text: I think the vacation was okay. Sentiment:

Few-Shot Job Posting Extraction Prompt

Extracts structured information from job listings based on examples.

INPUT: Software Engineer - Python specialist needed at TechCorp. 5+ years experience required. Salary range $90,000 - $120,000. Remote work available. Apply by June 30, 2024. OUTPUT: Position: Software Engineer Specialization: Python Company:...

Few-Shot Travel Itinerary Prompt

Provides sample travel itineraries by destination and trip type.

Destination: Tokyo, Japan Trip Type: Cultural Exploration Itinerary: A 5-day immersion in Tokyo's blend of tradition and modernity. Visit ancient temples like Senso-ji, then explore futuristic districts like Akihabara. Experience a tea ceremony,...

Few-Shot Sentiment Classification Prompt

Provides several examples before asking for classification.

Classify the sentiment of the following text as positive, negative, or neutral. Text: The product is terrible. Sentiment: Negative Text: Super helpful, worth it Sentiment: Positive Text: It doesnt work! Sentiment:

Few-Shot Structured Output Prompt (Colon Syntax)

Classifies short text inputs using a colon-separated structure.

Great product, 10/10: positive Didn't work very well: negative Super helpful, worth it: positive It doesnt work!: