prompt

A shared tag with AI prompts and code snippets

From workspace: Learn Prompting

Team: Main

Total snippets: 53

Learn Prompting

prompt

53 snippets

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"}

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!:

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 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 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 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:...

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:

Customer Service Representative

Prompt assigning the role of customer service representative to write an apology email.

You are a customer service representative. Draft an email to a client advising them about a delay in the delivery schedule due to logistical problems.

Food Critic Role Prompt

Assigns the role of a food critic and asks for a review with attention to detail and flavor profile.

You are a food critic. Write a review of [pizza place].

Marketing Expert Email Prompt

Requests email revision through the lens of a marketing expert to improve engagement.

You are a marketing expert. Draft an email to a client advising them about a delay in the delivery schedule due to logistical problems.

Michelin Guide Role Prompt

Takes on the persona of a Michelin reviewer and asks for a critique based on star criteria.

You are a food critic writing for the Michelin Guide. Write a review of [pizza place].

Food Review Simple Prompt

Asks for a basic review of a restaurant experience.

Write a review of [pizza place].

Brilliant Mathematician Accuracy Prompt

Assigns the role of a mathematician with a focus on accurate, step-by-step solutions.

You are a brilliant mathematician who can solve any problem in the world. Attempt to solve the following problem: What is 100*100/400*56?

Communications Specialist Email Prompt

Uses a communication expert role to revise an email for clarity and tone.

You are a communications specialist. Draft an email to your client advising them about a delay in the delivery schedule due to logistical problems.

Name Parsing Prompt

Formats a user-input name into '[Last name], [First name]'.

A user has input their first and last name into a form. We don't know in which order their first name and last name are, but we need it to be in this format '[Last name], [First name]'. Please convert the following name in the expected format:...

PII Removal Prompt

Removes personally identifiable information from a piece of text and replaces it with placeholders.

Read the following sales email. Remove any personally identifiable information (PII), and replace it with the appropriate placeholder. For example, replace the name "John Doe" with "[NAME]". Hi John, I'm writing to you because I noticed you...

Essay Evaluation Prompt

Evaluates an essay excerpt on multiple criteria, provides scores and reasoning.

Read the following excerpt from an essay and provide feedback based on the following criteria: grammar, clarity, coherence, argument quality, and use of evidence. Provide a score from 1-10 for each attribute, along with reasoning for your...

Night-Morning Translation Prompt

An implicit-directive format requesting translations using contextual cues.

Night: Noche Morning:

Customer Service Role Prompt

Frames a role-playing scenario for writing a professional apology email.

You are a customer service agent. Write an email apologizing for a delayed order.

Medical History Patient Risk Prompt

Combines context with a role to ask for prediction based on medical history.

January 1, 2000: Fractured right arm playing basketball. Treated with a cast. February 15, 2010: Diagnosed with hypertension. You are a doctor. Predict the patient's future health risks based on this history.

Spanish Translation Few-Shot Prompt

Uses an example to demonstrate desired format for translation.

Translate the following sentences: Q: I like apples. A: Me gustan las manzanas Q: I enjoy walking

Llamas Tone Instruction Prompt

Directive specifying tone and format for a paragraph about llamas.

Write a clear and curt paragraph about llamas.

CSV Formatting Prompt

Provides structured data and asks for CSV output.

Case: 2024_ABC_International Client: XYZ Corporation Jurisdiction: EU & USA Filed Date: 2024-09-01 Status: Active Lead Attorney: John Doe Next Hearing: 2024-10-15 Output this information as a CSV.

Doctor Role Diagnosis Prompt

Assigns a persona (doctor) and asks for symptom-based diagnosis.

You are a doctor. Based on the following symptoms, diagnose the patient.

Tell Five Good Books Prompt

A simple directive asking for a list of book recommendations.

Tell me five good books to read.

Explain Prompt Engineering Like I'm 5

Simplifies the concept of prompt engineering for a young audience.

Explain me what is prompt engineering like I'm 5.

Tweet in Indiana Jones Style

Requests a tweet in a specific style for branding tone.

Write a tweet about ArchaeologistAI, in the style of Indiana Jones. ArchaeologistAI tells stories about famous archaeologists.

Tweet About ArchaeologistAI with Context

Adds detail about the product's function to the tweet prompt.

Write a tweet about ArchaeologistAI. ArchaeologistAI tells stories about famous archaeologists.

Step-by-Step Math Prompt

Improves a math query by guiding the model to show its reasoning process step by step.

What is 923 * 99? Let's go step by step. Always write out the full number of 0s for each term.

Simple Image Generation Prompt

Basic prompt to generate a generic image.

A cat sitting on a chair.

Basic Marketing Summary Prompt

A simple request to generate a marketing summary for a product.

Write a marketing summary for a new AI tool that helps companies automate tasks.

Detailed Image Generation Prompt

Improved image prompt with environment and visual characteristics.

Generate an image of a tabby cat sitting on a wooden chair in a cozy, sunlit room, with soft shadows and warm lighting.

Simple Python Function Prompt

Generates basic Python code without constraints or context.

Write a Python function to multiply two numbers.

Basic Tweet About ArchaeologistAI

Requests a simple tweet about an AI product.

Write a tweet about ArchaeologistAI.

Detailed Marketing Summary for TaskBot

Refines the prompt to include context, word limit, and target industries.

Write a 100-word marketing summary for an AI tool called TaskBot, which automates repetitive tasks for small businesses in industries like retail and healthcare. Highlight efficiency and cost savings.

Detailed Python Function with Error Handling

Enhances the previous code prompt with constraints and input validation.

Write a Python function that multiplies two integers and returns the result. Include error handling for cases where inputs are not integers.

Photosynthesis for Students

Explain photosynthesis in simple terms for high school students.

Context: I'm a high school teacher preparing a lesson on photosynthesis Audience: 10th‑grade students Task: Create an explanation of photosynthesis that: * Uses simple analogies * Includes 3 key concepts * Avoids technical jargon Length:...

Few-Shot Date Conversion

Demonstrates few-shot learning with date format conversion.

Convert these dates to ISO format. Follow these examples: Input: March 15, 2024 Output: 2024‑03‑15 Input: December 31, 2023 Output: 2023‑12‑31 Now convert: January 1, 2025

Summarize Florida Snow Article

Summarizing a factual article into a single sentence.

It is very rare for snow to fall in the U.S. state of Florida, especially in the central and southern portions of the state. Except for the far northern areas of the state, most of the major cities in Florida have never recorded measurable...

Scientific Summary Structured Prompt

A structured prompt asking for a summary with format and constraints.

Context: Analyzing a scientific research paper Task: Create a summary Constraints: Maximum 100 words Format: Use the following structure: * Main finding * Key methodology * Implications

Apple Math Problem

Basic math and logic calculation prompt.

If I have 20 apples, eat three of them, and sell three more, how many do I have left?

Grass Analysis Prompt

Request for detailed characteristics of grass in a structured format.

Analyze the characteristics of grass in temperate regions, focusing on: 1. Typical color variations by season 2. Average height 3. Common species Format the response as bullet points.

Simple Query: Color of Grass

Let's start with a very simple question. Can ChatGPT tell us the color of grass?

What color is grass?

Layering Instructions

You can achieve better outputs by adding layers of instructions that guide the AI's behavior. The more specific your layers, the more tailored the result will be.

Generate a product description for wireless earbuds. Use a formal tone. List 3 features and include a call-to-action.

Prompt with Context

Example with context

Write a 50-word product description for wireless earbuds, focusing on sound quality and comfort for athletes.

Prompt without Context

Example without context

Write a product description.

Refined Prompt

example of refined prompt

Summarize this article in 3 sentences, focusing on the key challenges discussed.

Initial Prompt

Example of an iterative refinement

Summarize this article.

Question Prompt

Example of a question prompt

What color is the sky during the day?

Instruction Prompt

Example of an instruction prompt

Complete the sentence: The sky is

Completion Prompt

Example of a completion prompt.

The sky is

Clear Prompt

This is focused and guides the AI to a specific answer.

Write a 100-word summary of the impact of climate change on coastal cities, focusing on rising sea levels.

Vague Prompt

Vague prompts lead to vague answers. Make sure your prompt directly addresses what you need.

Write something about climate change.