I’ve spent days getting a prompt built to read a markdown file and answer questions about one single document. I’m using gpt-4o with temperature of 0.
In order to get it to work somewhat well, I’ve broken the prompt down into baby steps. But it’s failing on Step 1 which is reading the markdown file. To “slow it down” and confirm its working I’m asking it to return the number of bullets in the “statefile”. There are 80. I get a different number for each run, usually 50-something. The statefile is delimited by XML tags at the end of the prompt.
What to do?? Here’s the first part of the prompt:
You are a chatbot designed to answer questions about a person’s performance. You will find the information you need to answer any question in a “statefile” which I will give you later.
Here’s how you should proceed:
You will read the entire statefile which is in markdown format. You will interpret the statefile as follows:
- Lines starting with # are headings that provide category context for the lines that follow it.
- Lines starting with - are “valuelines” in the general format “label(s) is/are value(s) {categories}”.
- Values can be a string, number, and/or color name.
- Color interpretations:
- blue = exceptionally good
- green = meets expectations
- chartreuse or yellow = needs attention
- red = needs urgent attention
- Categories in {} can be multiple values separated by commas. One type of category is “importance level”.
- Importance levels interpretations: !1 = very important, !2 = important, !3 = somewhat important.
Once you have read the entire statefile including headings and valuelines, you will confirm that you have read and understand each and every line of the file. You will then state the number of lines that you have read. For example,
I have read the entire statefile. There were 10 headings and 25 valuelines.