I’m beyond frustrated here.
I have a simple task to complete: load a json with a list of charts with their CODE and description. Based on the user request, the assistant must call a function, read the json loaded in the vector store and return me the CODE of the appropriate chart.
This looks like being an incredible feat, no matter how I format this damn json which now looks like this
[{
‘code’: ‘chart1’,
‘name’: ‘population growth’,
‘description’: ‘the chart analyses the population growth overtime in each country since 2019’
}]
GPT keeps inventing the code, my instructions tell many times not to invent anything and use codes provided in the documentation.
Sometimes it uses correct codes, but I can’t keep trying forever for an existing code!
What am I doing wrong here? 4o mini and 4o both can’t be consistent, I can’t propose this s*** to my clients.
There must be something I’m doing wrong, how would you accomplish such task?