Instructions in XML not working well

I am writing instructions in XML for my GPT Assistant that I am accessing via API. First, it worked great. I structured the instructions and the GPT was doing exactly what I wanted, but slowly it is not working anymore. The bot cannot refer to tasks that are at the end of the instructions. Also, it struggles to read instruction from XML files that I am attaching. It often fails reading the files.

Do you have any suggestion for how to prompt the GPT better so it follows the instructions even when they are more complex?


Hi! Welcome to the forums!

This is super strange, because in my experience, the models absolutely prefer to follow stuff towards then end of the prompt over stuff at the start of the prompt - unless you’re talking about ada - ada seems to have a preference for the start, and a blind-spot for the middle. :thinking:

Can you share more details about your process?