ChatGPT Prompts: Improving Prompts with Samples

Anuj Agarwal
3 min readApr 13, 2023

--

To improve the output of GPT, there are several things you can do:

  1. Provide high-quality prompts: The quality of the output depends on the quality of the prompt. Make sure your prompts are clear, concise, and specific.
  2. Fine-tune the model: Fine-tuning the model on a specific task can improve its accuracy and generate more relevant text.
  3. Provide additional context: Providing additional context to the model can help it generate more relevant and accurate text.
  4. Post-process the output: Post-processing the output can help clean up any errors or inconsistencies and make the text more readable.
  5. Evaluate and iterate: Regularly evaluating the output and making adjustments to the prompts or fine-tuning the model can help improve the quality of the output over time.

Here are some examples of before and after prompts to demonstrate how to improve the quality of GPT prompts:

  1. Provide high-quality prompts:

Before: “Write an article about cars.”

After: “Write a 1000-word article about the future of electric cars and their impact on the automotive industry.”

The second prompt is more specific and provides more context about the topic and the target audience, which can help the model generate more relevant and accurate text.

Fine-tune the model:

Before: “Generate responses for a customer service chatbot.”

After: “Fine-tune the GPT model on a dataset of customer service interactions to generate responses for a chatbot that can handle customer inquiries and complaints.”

The second prompt is more specific and provides instructions on how to fine-tune the GPT model for a specific task.

Provide additional context:

Before: “Write a product description for a laptop.”

After: “Write a product description for a laptop with a 15.6-inch touchscreen display, Intel Core i7 processor, 16GB RAM, and NVIDIA GeForce RTX 3060 graphics card, targeting gamers and creative professionals.”

The second prompt provides more specific details about the laptop’s features, benefits, and target audience, which can help the model generate more relevant and accurate text about the product.

Post-process the output:

Before: “Generate a 500-word article about renewable energy.”

After: “Generate a 500-word article about renewable energy and use a grammar checker and spell checker to correct any errors or inconsistencies.”

The second prompt includes post-processing instructions to clean up any errors or inconsistencies in the generated text and make it more readable.

Evaluate and iterate:

Before: “Generate responses for a chatbot that can handle customer inquiries and complaints.”

After: “Fine-tune the GPT model on a dataset of customer service interactions, evaluate the accuracy and relevance of the generated responses using a test set of data, and make adjustments to the prompt or fine-tune the model based on the evaluation results.”

The second prompt includes instructions on how to evaluate the quality of the generated text and make adjustments to the prompt or model based on the evaluation results.

--

--

Anuj Agarwal
Anuj Agarwal

Written by Anuj Agarwal

Director - Technology at Natwest. Product Manager and Technologist who loves to solve problems with innovative technological solutions.

No responses yet