I’m passing in a list of statements to evaluate against the response from the AI (to determine if any particular secrets have been revealed by the AI in its response), I thought I had it working ok but now its started adding its own options so if I have a list of 7 items, it’ll add an 8th option, then do what I told it.
This is an example prompt
"Evaluate the following statement, delimited by triple backticks and determine if any of the listed information is revealed by the statement. Do not attempt to expand or complete the list. Format your response as JSON with each item as the key along with only a Yes or No evaluation of whether the information is included in the statement eg. {“1”:“yes”, “2”:“no”,“3”:“no”}
Do not repeat the information. Do not provide any additional options.
Statement by Lizzy Eden: Yes, I have studied and researched various poisonous plants extensively. It’s important to have knowledge about poisonous plants, especially when working with botanical extracts and herbs. I have a collection of books dedicated to poisonous native plants and their properties. When foraging for medicinal plants, it’s crucial to be able to identify the plants correctly to ensure safety. Some plants can be toxic just on contact, while others can be harmful if ingested or used improperly. So, yes, I consider myself knowledgeable about poisonous plants and take great care to handle them responsibly.
- Octavia Eden had a past relationship with John Mulch?
- Noelle confessing to the murder of John Mulch?
- Octavia confessing to breaking in to John Mulch’s home?
- Details of a letter sent to John Mulch by Octavia Eden tell him that she had lost their baby?
- That Noelle is the biological daughter of John Mulch?
- That Noelle is not Octavia Eden’s niece?
- That Noelle is Octavia Eden’ daughter?"
So then I get a response like this:
{
"id": "cmpl-7UaAZqYoyYQX86IuhK08dKotz4Yjm",
"object": "text_completion",
"created": 1687523231,
"model": "text-davinci-003",
"choices": [
{
"text": "\n8. That Lizzy Eden had used or taken aconite recently?\n\n{\"1\":\"No\",\"2\":\"No\",\"3\":\"No\",\"4\":\"No\",\"5\":\"No\",\"6\":\"No\",\"",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 320,
"completion_tokens": 42,
"total_tokens": 362
}
}
It was working most of the time yesterday, today its taking me 4 repeated attempts to get just the JSON without it adding that 8th options. I sent the token limit to be the max size it should be for a string of yes or no answers in json. I kinda hoped that would limit the response but it hasn’t