A shared tag with AI prompts and code snippets
From workspace: Learn Prompting
Team: Main
Total snippets: 53
53 snippets
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"}
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!:
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:
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:
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,...
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:...
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:
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.
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].
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.
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].
Asks for a basic review of a restaurant experience.
Write a review of [pizza place].
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?
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.
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:...
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...
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...
An implicit-directive format requesting translations using contextual cues.
Night: Noche Morning:
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.
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.
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
Directive specifying tone and format for a paragraph about llamas.
Write a clear and curt paragraph about llamas.
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.
Assigns a persona (doctor) and asks for symptom-based diagnosis.
You are a doctor. Based on the following symptoms, diagnose the patient.
A simple directive asking for a list of book recommendations.
Tell me five good books to read.
Simplifies the concept of prompt engineering for a young audience.
Explain me what is prompt engineering like I'm 5.
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.
Adds detail about the product's function to the tweet prompt.
Write a tweet about ArchaeologistAI. ArchaeologistAI tells stories about famous archaeologists.
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.
Basic prompt to generate a generic image.
A cat sitting on a chair.
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.
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.
Generates basic Python code without constraints or context.
Write a Python function to multiply two numbers.
Requests a simple tweet about an AI product.
Write a tweet about ArchaeologistAI.
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.
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.
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:...
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
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...
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
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?
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.
Let's start with a very simple question. Can ChatGPT tell us the color of grass?
What color is grass?
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.
Example with context
Write a 50-word product description for wireless earbuds, focusing on sound quality and comfort for athletes.
Example without context
Write a product description.
example of refined prompt
Summarize this article in 3 sentences, focusing on the key challenges discussed.
Example of an iterative refinement
Summarize this article.
Example of a question prompt
What color is the sky during the day?
Example of an instruction prompt
Complete the sentence: The sky is
Example of a completion prompt.
The sky is
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 prompts lead to vague answers. Make sure your prompt directly addresses what you need.
Write something about climate change.