Need chat gpt to return a workout session of a specfic distnace and it fails

I’m using Chats GPT to build a swim training session. It does some great sessions which is fine. But no matter how I tell it to match the total distance I input, it never comes out right. So if I say to write a 2000m set, it will make it 2300m or something along those lines. Here’s is my chatbot prompt with a sample input. There’s other issues with it too but I want to get the total session distance right first. I’m using the ChatGPT 3.5 Turbo with a temp of .5

I will send this info: : Total Distance of session in meters, Length of pool in meters, pace per 100m freestyle, and focus of the session… Please create a swimming session with warmup, kick, pull, drills, a mainset, and a cooldown. Put it in table format but do not number the sets. Column A, Description of the set, B, reps and distance per each like (4 x 25m) and and interval, C Total time of set, and D, total distance of set. (If the row is just a description don’t put a total distance for D in that row). At the bottom of C add up the total time. And at the bottom of D add up the total distance of the sets. The sets must be created so the total of all of them is exactly the same as the request total distance in meters.

sample entry: 2500m, 25m, 1:45, Freestyle sprints.

  1. ChatGPT is not great at counting.
  2. Providing one or two examples in the prompt will yield improved results.

You could try a multi-step approach and ask ChatGPT to reflect on its plan. Try assembling a prompt with the following structure:

  1. draft a swim training session in <draft> tags meeting conditions X,Y,Z
  2. reflect on the draft you assembled. Confirm that it does, indeed, meet these conditions.
  3. return a finalized plan in <plan> tags, making any amendments to your <draft> to make sure it meets the conditions.

I can’t say for sure that it will work, but this kind of prompting does improve performance on problems requiring multi-step reasoning quite a lot in my experience.

I gave it a couple examples but it seems to have come out worse!

So if I start but giving you 3000m in my initial total session distance entry, all the sets should add up in a total session distance to exactly 3000m. And if I give 3500m in my iniital total distance entry, all the sets should add up to a total session distance of exactly 3500m

Or should I give actual table examples?

Yes, I must say I have used the GPT a lot for so many things and gently refining it as I go seems to work best. But I’m sort of after a one-stop session generator, which I’m not sure is possible. I enter my parameters and want it to spit out a perfect result! I’m hoping to not have to coax it along all the time.

I mean to try putting all of that in one prompt—so it won’t be a series of prompts, refining it at each step; it’s asking ChatGPT to add a reflection/revision step to its (single) response.

1 Like

ahh! thanks! Alas my head is already exploding! I will give it a go over the weekend.

Hi @kellyllek :wave:

Welcome to the OpenAI community.

Here’s a working example (still needs refinement):

You should give it examples of exactly what you want it to do.