Chat GPT Not Producing Requested Length

I have set up an Integration to use Chat GPT to read from Google Sheets and then write an article to post to WordPress.

After many hours of trial and error, and chatting with GPT itself, I have finally got it to post an article with correct headings etc.

The problem is that it will only write articles between 550 and about 650 words. I tell it to write 1200 words, at least 1200 words, a minimum of 1000 words and repeat again later in the prompt.

None of this works. I increased my Max Completion Tokens to 4060 from 2000 and this has no effect.

Please someone tell me there is an easy fix for this. I’ve wasted too many hours on this already!

Hello @Dave_Kendrick, welcome to the community LLMs like chatgpt have the max no of words that can be outputted you can split the prompt as done in this videohttps://youtu.be/GqRzEqEE70I?si=Nt-7xVWcrS48VRjU, please mark as solution if this helps

Hello @Dave_Kendrick,
Welcome to the community.

I think this is just related to organising the prompt properly.
First, if it’s possible please share your prompt, Just need to verify what is the approach you’ve used with your prompt. (Note: Hide Or remove sensitive info).

There are various ways to handle prompts based on different methods. I’ve created one specific post to handle prompts using the Input-Process-Output method.

Just keep in mind that whatever AI Model you’re using it always needs 3 things in the prompt.
Input ( Explain to them the background and whether this is my sample data or actual data).
Process ( What is the process you need to do on that data? Like transform, translate, combine etc)
Output (In a prompt also tell them that this is my sample output and I also want that generated output will be given in this specific format).

There are lot more on this post-A Beginner’s Guide to Effective AI Prompts: The Input-Process-Output Framework

I hope this helps you.


:bulb:P.S.: Always search first, Check Make Academy. If this is helpful, Mark Best as Solutions :white_check_mark: and give :+1:
If you need expert help or have questions? Contact or comment below! :point_down:

Hi Dillip

Thanks for the info.

I have tried all kinds of prompts both short and long. For the long ones I tried splitting up into extra messages.

This is the last prompt that I used…
Write a listicle titled “{{1.2}}” using the keyword “{{1.1}}”, including subtitles that use HTML for markup formatting. Follow the format and structure described in the system role. Make sure the article is at least 1,000 words long.

It produced the format that I wanted but again it was a short article.

The prompt doesn’t have a lot of the information I want so maybe the idea of having multiple GPT Modules might be the way to go. (Thanks for the video link!)

Incidentally, I have seen numerous suggestions about increasing the number of tokens. This has no effect whatsoever!