I no longer have the original query that worked in the Chat interface but not in the API. However, after a lot of trail and error I managed to come up with a version (below) that also worked in the API. However, after approx. 10 times, the model again started to reply “I am sorry as a language model…”.
Note this was using the exact same query that first worked and then didn’t.
Here is the latest version. So should one assume that the reply from the API is quite random even for the exact same query?
I would have appreciated that the model can’t provide answers to these type of query but the point is that the chat interface does provide an accurate answer. Even tweaking the query in many different ways the chat interface still consistently provides a complete answer.
Query/prompt:
Here is a list of companies stored as objects in an array. Can you try to find publicly available information and add it to the following object keys: ‘Main industry’, ‘Sub industry’, ‘Description’. Please return the original object with the added data. Here is the original data:
{
“0”:{“cik_str”:1318605,“ticker”:“TSLA”,“title”:“Tesla, Inc.”, “Main industry” : “”, “Sub industry” : “”, “Description” : “”},
“1”:{“cik_str”:1046179,“ticker”:“TSM”,“title”:“TAIWAN SEMICONDUCTOR MANUFACTURING CO LTD”, “Main industry” : “”, “Sub industry” : “”, “Description” : “”},
“2”:{“cik_str”:1403161,“ticker”:“V”,“title”:“VISA INC.”, “Main industry” : “”, “Sub industry” : “”, “Description” : “”}
}