Relative Content

Tag Archive for openai-apigpt-4chat-gpt-4

Design Prompt so that ChatGPT does not make basic arithmetic mistakes

So in my usecase i am leveraging GPT-4 and asking it to act as an accountant and provide insights as an accountant would based on some transaction data i am passing in the prompt. However it is hallucinating and is not reading the numbers right or is making some arithmetic errors while calculating the total costs or any percentages. I read about Chain-of-thought prompting and seen examples but am still not sure how to apply it in my use case. i dont really need it to give me total costs or percentage values but insights based on it. Can anyone give some idea as to how i should design my prompt?
As for the transaction data and all, i am providing the json data between some delimiters with in the prompt only (have specified in the system message where it can get the data).