Let’s take a concrete example. My script asks GPT3.5 to look through out of office emails and say if the person is coming back or if he left the company and give new contacts if provided in email).
Currently I explicitly direct in my system prompt how GPT should format its answer (ex: "Separate such and such info with “|” "etc…)
With that technique, GPT outputs things like:
Out of office reply|OOO|John Doe|[my email]
I can then parse it with a script easily and output to excel. It’s pretty good but sometimes it messes up and doesn’t format correctly its answers.
I feel like perhaps there is a more full proof way to have GPT format its answers. Is there? Is that what function calling is for for example?