Chatgpt not following my indications. Why?How to rewrite them?

I’m using this prompt:

I will give you a lists of headings. You have to elaborate each one, strictly following these constraints and limitations:

Each heading  must have of a minimum of 1 paragraphs and a maximum of 2 paragraphs.
Each paragraph must have a minimum of 1 sentence and a maximum of 2 sentences.
Each sentence must have a minimum of 5 words and a maximum of 15 words. 

List of headings:
“Unicorn Birthday Party: A Magical Celebration Guide”
“Planning the Perfect Unicorn Themed Birthday Bash”
“Unicorn Party Supplies: Must-Haves for a Whimsical Celebration”

Unfortunately, output does not meet the limitations. Why? how could i solve that?

3 Likes

I can help you write better, to make the goals clear to AI.

First problem: you refer to both input and output as “headings”. Have you placed a limitation on your own input, the AI wonders?

ChatGPT prompt:

// AI Task

You will rewrite short titles into longer descriptions of what the article may contain to be used as header metadata. You will have to infer what the article may be about from the title alone.

// Instructions for expanding input titles to a short heading description

  1. Each rewritten heading response must have of a minimum of 1 paragraphs and a maximum of 2 paragraphs.
  2. Then, each paragraph of rewritten heading response generated must have a minimum of 1 sentence and a maximum of 2 sentences.
  3. Those sentences must each have a minimum of 5 words and a maximum of 15 words.
  4. Each title is a standalone entity, where each output must fulfill these guidelines.

// Input titles

  1. “Unicorn Birthday Party: A Magical Celebration Guide”
  2. “Planning the Perfect Unicorn Themed Birthday Bash”
  3. “Unicorn Party Supplies: Must-Haves for a Whimsical Celebration”

Response:

  1. Discover the enchantment of hosting a unicorn-themed birthday party with our comprehensive guide. From decorations to activities, this guide offers a magical blueprint for an unforgettable celebration.

  2. Learn how to orchestrate the ultimate unicorn-themed birthday party that will captivate guests of all ages. Our expert tips cover everything from invitations to party favors, ensuring a magical and memorable bash.

  3. Explore essential unicorn party supplies that will transform any venue into a whimsical wonderland. This article highlights must-have items and creative ideas to enhance the magical ambiance of your celebration.

4 Likes

@brainogen I can share few techniques. Clearly define your intentions and expectations on a suggestive tone rather then trying to control it. :slight_smile:

1 Like

Thanks man for being a problem solver. I tried your prompt and results and amazing. I was searching for the same solution and you nailed it.

1 Like

You should consider using Few-shots examples (Few Shots Prompting), which will give it a better idea on how to structure the response.

After your prompt, give it a few examples on how you would likt the output to be, You can read more about it here (paragraph 4): Best practices for prompt engineering with the OpenAI API

1 Like

Extract the important entities mentioned in the text below. First extract all company names, then extract all people names, then extract specific topics which fit the content and finally extract general overarching themes

Desired format:
Company names: <comma_separated_list_of_company_names>
People names: -||-
Specific topics: -||-
General themes: -||-

Text: {text}

https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-the-openai-api

1 Like