Basic prompt examples


Basic prompt examples for different types of tasks:

  1. Text Completion: Prompt: "Roses are red, violets are ___."

  2. Question Answering: Prompt: "What is the capital of France?"

  3. Summarization: Prompt: "Please provide a summary of the article about climate change."

  4. Translation: Prompt: "Translate the following English text into French: 'Hello, how are you?'"

  5. Comparison: Prompt: "Compare and contrast the advantages and disadvantages of electric cars and traditional gasoline cars."

  6. Definition: Prompt: "Define photosynthesis."

  7. Step-by-Step Instructions: Prompt: "Provide step-by-step instructions for baking a chocolate cake."

  8. Opinion or Explanation: Prompt: "Explain your perspective on the impact of technology on modern relationships."

  9. Creative Writing: Prompt: "Write a short story about a young explorer discovering a hidden treasure in a remote jungle."

  10. Coding Help: Prompt: "Write a Python function to calculate the factorial of a given integer."

  11. Poetry Generation: Prompt: "Compose a haiku about the changing seasons."

  12. Math Problem: Prompt: "Solve for x: 2x + 5 = 15."

Remember that the effectiveness of these prompts can be improved through iterative testing and adjustments. Depending on the complexity of the task and the model's familiarity with the topic, you might need to fine-tune the prompts to get the desired output.

here are some examples of basic prompts:

  • Descriptive prompts: These prompts ask the LM to describe something in detail. For example:
    • Describe the best party you have ever attended.
    • Describe the process of making your favorite meal.
    • Describe a scene from your favorite movie.
  • Expository prompts: These prompts ask the LM to explain something. For example:
    • Explain why the sky is blue.
    • Explain how to solve a Rubik's Cube.
    • Explain the difference between a cat and a dog.
  • Narrative prompts: These prompts ask the LM to tell a story. For example:
    • Write a short story about a robot who falls in love with a human.
    • Write a sequel to your favorite book.
    • Write a poem about the beauty of nature.
  • Creative prompts: These prompts ask the LM to be creative. For example:
    • Write a song about a lost love.
    • Design a new logo for a company.
    • Come up with a new invention.

These are just a few examples of basic prompts. There are many other possibilities, and the best way to learn how to write effective prompts is to experiment and see what works best.

Here are some additional tips for writing effective prompts:

  • Be specific. The more specific you are, the better the LM will be able to understand what you are asking for.
  • Use keywords. The LM will be more likely to generate text that is relevant to the topic if you use keywords that are related to the topic.
  • Provide examples. If possible, provide the LM with examples of the desired output. This will help the model to learn how to generate similar text.
  • Be patient. It may take some trial and error to find the right prompts for the task you are trying to accomplish.

Basic prompt examples


Enroll Now

  • Python Programming
  • Machine Learning