Gemini Tips: Advanced AI Prompts

Answer

 

July 21, 2024

Advanced AI Prompts: Definitions and Examples

Prompt: Create a table with 20 commonly used advanced AI Promt categories with definitions and examples.
 

Category

Definition

Example

Role-Playing

Assigning the AI a specific character or persona to interact with the user.

"Imagine you are Sherlock Holmes. I will describe a crime scene, and you deduce what happened."

Chain-of-Thought

Encouraging the AI to break down complex tasks into smaller, more manageable steps and explain its reasoning.

"Solve this math problem step-by-step: 2x + 5 = 11"

Few-Shot Learning

Providing a few examples of a task to help the AI understand and generalize to new, unseen examples.

"Translate these phrases to French: Hello - Bonjour, Goodbye - Au revoir. Now translate: Good morning."

Zero-Shot Learning

Asking the AI to perform a task without any explicit examples or training data.

"Classify this news article as political or sports."

Multi-Modal Prompts

Incorporating different types of media, such as images or audio, alongside text prompts.

"Describe this image of a city skyline at sunset."

Style Transfer

Modifying the writing style or tone of a piece of text.

"Rewrite this email in a more professional tone."

Counterfactual Prompts

Asking the AI to consider alternative scenarios or possibilities.

"What would have happened if the US did not join World War II?"

Sentiment Analysis

Analyzing the sentiment or emotion expressed in a piece of text.

"Is this movie review positive or negative?"

Text Summarization

Condensing a longer piece of text into a shorter, more concise summary.

"Summarize this research paper in 3-5 sentences."

Code Generation

Generating code snippets based on natural language descriptions.

"Write a Python function to calculate the average of a list of numbers."

Creative Writing

Generating poems, stories, or other forms of creative writing.

"Write a short story about a robot who discovers the meaning of life."

Question Answering

Providing direct answers to factual questions.

"Who was the first president of the United States?"

Dialogue Generation

Generating dialogue between two or more characters.

"Write a conversation between a customer and a salesperson at a car dealership."

Text Completion

Filling in missing words or phrases in a piece of text.

"The quick brown fox jumps over the ____ dog."

Translation

Translating text from one language to another.

"Translate this sentence from English to Spanish: 'The weather is beautiful today.'"

Instruction Following

Following specific instructions or commands.

"List the top 5 most populated cities in the world."

Text Classification

Classifying text into predefined categories.

"Is this email spam or not spam?"

Information Extraction

Extracting specific information from unstructured text.

"Extract the names of all people mentioned in this news article."

Text Paraphrasing

Rewriting a piece of text in different words while preserving the original meaning.

"Paraphrase this sentence: 'The economy is expected to grow by 2% next year.'"

Text Generation with Constraints

Generating text that adheres to specific constraints, such as length, format, or style.

"Write a haiku about the beauty of nature."

 

  • Last Updated Jul 21, 2024
  • Views 202
  • Answered By Peter Z McKay

FAQ Actions

Was this helpful? 0 0