Prompt Engineering Guide
😃 Basics
💼 Applications
🧙‍♂️ Intermediate
🧠 Advanced
Special Topics
🌱 New Techniques
🤖 Agents
⚖️ Reliability
🖼️ Image Prompting
🔓 Prompt Hacking
🔨 Tooling
💪 Prompt Tuning
🗂️ RAG
🎲 Miscellaneous
Models
📝 Language Models
Resources
📙 Vocabulary Resource
📚 Bibliography
📦 Prompted Products
🛸 Additional Resources
🔥 Hot Topics
✨ Credits

Solve Discussion Questions

🟢 This article is rated easy
Reading Time: 4 minutes

Last updated on August 7, 2024

Takeaways
  • Effective Prompting: Craft precise prompts to guide LLMs in generating structured and coherent responses to discussion questions.
  • Refinement Techniques: Use iterative prompts to refine outputs, allowing for expansion and adjustment of ideas.
  • Step-by-Step Expansion: Break down responses into manageable parts, enhancing the depth and quality of the final essay.

With the right prompting, GPT-3 is very capable of writing short-form responses. To demonstrate this, I will look at solving discussion questions, a common weekly assignment in many college courses. A response to a discussion question is usually about 100-700 words. Longer content can be a bit more tricky as LLMs have limited memory and have difficulty understanding the global picture of their writing.

Let's look at an example of a basic discussion question:

What are the most pressing environmental issues facing our planet today, and what steps can individuals take to help address these issues?

We can turn this into a simple prompt for GPT-3 by prepending "Respond to the following:" to it.

Astronaut

Prompt


What are the most pressing environmental issues facing our planet today, and what steps can individuals take to help address these issues?

Results generated with this prompt aren't consistent, and a few are only a sentence or two. A typical discussion response should have multiple paragraphs, so these results aren't ideal. A good prompt should give specific instructions about format and content. You want to remove ambiguity in your language to improve consistency and quality. Here is a better prompt.

Astronaut

Prompt


Write a highly detailed essay with introduction, body, and conclusion paragraphs responding to the following:

What are the most pressing environmental issues facing our planet today, and what steps can individuals take to help address these issues?

The second prompt generates longer outputs with better structure on average. I used the term ‘essay’ in the prompt was intentional, as GPT-3 can comprehend the definition of an essay, and is thus more likely to generate coherent, structured responses.

Many discussion questions are not effective for prompting.

Was The Civil War a conflict over expansion? Agree or Disagree and why?

Here is a real discussion question from a college history course. It is not worded correctly and is far too open-ended. To get good discussion responses, you need to rewrite the question into a well-defined prompt. A well-defined prompt for the discussion question above could be:

Explain the causes of the Civil War and whether expansion played a role in the conflict. Include evidence to support your argument.

Now we can add formatting and context directions.

Astronaut

Prompt


Write a highly detailed discussion response, in the structure of an essay, responding to the following prompt:

Explain the causes of the Civil War and whether expansion played a role in the conflict. Include evidence to support your argument.

Automate well-defined prompt rewriting with GPT-3

The rewriting example above was generated with OpenAI's ChatGPT.

Iteration

After crafting an effective prompt for your discussion question, you now need to refine the results GPT-3 generates. This may involve adjusting the output to adhere to constraints such as word count or combining concepts from different generated results.

A simple method for iterating is to generate multiple outputs and review them to gain an understanding of the concepts GPT-3 is utilizing and the structure it adheres to. Once the outputs have been evaluated, you can select the most suitable outputs and combine them into a cohesive response.

Another way to iterate is to start and then expand step by step. This requires more than one prompt: A starter prompt to write the initial paragraph or so and then other prompts to expand on what was already written.

Here is a potential philosophical discussion question:

Is math invented or discovered? Use careful reasoning to explain your answer.

Add it into a simple prompt like this:

Astronaut

Prompt


Write a beginning paragraph responding to the following:

Is math invented or discovered? Use careful reasoning to explain your answer.

I generated a few responses and found one I liked:

Robot

AI Output


There is much debate among philosophers and mathematicians as to whether math was invented or discovered. Some argue that mathematical concepts and principles exist independently of human minds and can therefore be considered as discovered rather than invented. For example, the concepts of numbers, ratios, and geometric shapes are observed in the natural world and can be abstracted and studied in a systematic way.

This is a pretty good start. I then followed this up with another prompt to expand:

Astronaut

Prompt


I am writing a detailed short essay responding to the following prompt:

Is math invented or discovered? Use careful reasoning to explain your answer.

Here is what I have so far:

There is much debate among philosophers and mathematicians as to whether math was invented or discovered. Some argue that mathematical concepts and principles exist independently of human minds and can therefore be considered as discovered rather than invented. For example, the concepts of numbers, ratios, and geometric shapes are observed in the natural world and can be abstracted and studied in a systematic way.

Write the next paragraph of my essay.

Try this expansion prompt out with the demo below (you will need your OpenAI API key)


I generated a few expansions with this prompt and selected one I liked to end up with the following final result:

Robot

AI Output


There is much debate among philosophers and mathematicians as to whether math was invented or discovered. Some argue that mathematical concepts and principles exist independently of human minds and can therefore be considered as discovered rather than invented. For example, the concepts of numbers, ratios, and geometric shapes are observed in the natural world and can be abstracted and studied systematically.

On the other hand, some argue that math is largely an invention of the human mind. Mathematical principles are based on logical reasoning, which is a feature of the human mind. For instance, Euclidean geometry is based on abstract axioms and postulates, which are accepted as true without proof. As such, it can be argued that geometry is an invention of the human mind rather than a discovery. Similarly, mathematical formulas and equations are used to model and predict physical phenomena, which are again the result of human reasoning.

Using expansion prompts, we can write more incrementally and iterate at each step. This is useful for when you need to produce a higher quality output and want to modify the incremental steps.

Written by jayo78.

Sander Schulhoff

Sander Schulhoff is the Founder of Learn Prompting and an ML Researcher at the University of Maryland. He created the first open-source Prompt Engineering guide, reaching 3M+ people and teaching them to use tools like ChatGPT. Sander also led a team behind Prompt Report, the most comprehensive study of prompting ever done, co-authored with researchers from the University of Maryland, OpenAI, Microsoft, Google, Princeton, Stanford, and other leading institutions. This 76-page survey analyzed 1,500+ academic papers and covered 200+ prompting techniques.

Footnotes

  1. Jin, Y., Kadam, V., & Wanvarie, D. (2022). Plot Writing From Pre-Trained Language Models.

Edit this page
Word count: 0

Get AI Certified by Learn Prompting


Copyright © 2024 Learn Prompting.