ChatGPT still hallucinates data even with api response

What I found that fixed this for me was to change the response from an array of strings to a single string.

I also limited the amount of data sent back so that it was not more than 150 lines of data.

Not sure if json attributes get handled a certain way but chat gpt seems to like purely text data better than well formatted json objects

We are still returning json but found that returning only a smaller amount of data is better. We return only 3-5 items. More than that, it can’t handle it well.

Arash

I found it can handle a lot more data if it is not formatted as json.

Maybe a text based format would let you use more results.