Earlier quoted context omitted.
Looks cool and seems like a valuable tool! I really like the idea of LLMs that give you rich answers like this. I'm curious how you're accurately extracting the data though. Are you prompting to respond in a JSON format, using OpenAI's functions or something else? How do you ensure you have the correct label, dates, values, etc?
I am using openai's functions as that is a more reliable form of extracting json, but even that can fail sometimes as the response misses a "'" or a }
In regards to extracting the correct data, is that done through the function definitions? You specify all the fields you want to extract in the function and then let GPT go ham?
E.g. operating income, interest income, interest expense, etc.