my claygent using chatgpt 4o mini is now returning some of the responses in a json format - {"response":"Business Development Manager","citation":"[Source](https://info.montgomerycollege.edu/_documents/offices/procurement/bids/e424-007-pre-proposal-sign-in-sheet.pdf)"}
This is happening because you likely have the "Return as JSON Object (JSON Mode)" option enabled in your ChatGPT settings. When this option is turned on, the output will be formatted as a JSON object. To get regular text responses, you can disable this option. Just make sure that your prompt doesn't include the word "json" as this can also trigger JSON formatting. Source: ChatGPT: Generate text with OpenAI/GPT
Looks like you're still looking for help. We're escalating this over to our support team and someone should be in touch soon. In the meantime, feel free to include any other information that may be helpful in solving your issue!
Hi Jeff, thanks for reaching out! Could you clarify what format/structure you'd like your output to maintain?
only the response
sometimes it does it other times it doesnt
this is a new phenomenon
I've experienced exactly the same recently. Here's a screenshot:
yeah, exactly
its a giant pain
Jeff and Lars, do you mind sending the link to your tables so we can take a look? https://downloads.intercomcdn.com/i/o/1171717996/ac7729f84b426e1d0358af02/image.png?expires=1733252400&signature=5870183aff5183847230c5225370469b9ef976e2e4ad68a7422511298f370e7c&req=dSEgF85%2FmohWX%2FMW1HO4zYTywSj%2BA5US2BKsam%2FhVPuf5Q%3D%3D%0A
my sense its happening to everyone
anytime claygent is used
Thanks Jeff! Your set up looks correct and I understand how frustrating these random JSON outputs can be. Part of this randomness is just how AI works. I've shared your frustration with our engineers as I do agree other users experience this issue as well. To reduce this randomness, we made it easier to add more structured output fields with JSON Schema. Generally, the more structure you can provide to AI the less random these JSON formatted responses will occur. Specifying output structure under Output format > selecting JSON Schema (advanced) > using generate from prompt enables you to use AI to format your output in accordance with your prompt
Hey Jeff and Lars, great news! I just spoke with our engineering team and they shared there are some fixes we can push to make our structured outputs more reliable and consistent. Thanks for flagging these examples for us, this is super helpful to help us improve our response quality! Will keep you posted when those fixes go live. Please continue to share any inconsistent responses that arise.
thx
Hey there - just wanted to check in here to see if you needed anything else! Feel free to reply back here if you do.
We haven't heard back from you in a bit, so we're going to go ahead and close things out here - feel free to let us know if you still need something!