Upload a json and return modified

Hi, it’s possible to upload a json file, and give instruction to how compile certain fields, and get back the filled json as a result?

I’m trying Assistant, but as result it always return me a json with fake data, not the data i uploaded in the json

1 Like

Hi @tomatocodes and welcome to the community!

Have you tried using structured outputs for this?

I am not too sure how it would work with Assistants API in this case, since uploading files leads to them being chunked up and indexed in the vector database. I can see how things can go wrong from there.

Have you tried just using plain ChatCompletions API? Send your JSON string in the user prompt, give instructions on any additional processing in the system prompt, and provide a response JSON schema as per structured outputs above. WDYT?