Use JSON Patch instead of entire objects for retries #1599
NickSherrow
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
The current retry logic requires the LLM to regenerate the entire object every time the received object fails validation. I think this might not be the best approach for fixing objects, and here’s why:
Why not use something like [RFC 6902 JSON Patch](https://tools.ietf.org/html/rfc6902), as [trustcall](https://github.com/hinthornw/trustcall) does?
An alternative flow could look like this:
Patch
class withop
,path
, andvalue
, generated dynamically from the schema.Has this approach already been discussed? Curious what the community thinks about this in general.
Beta Was this translation helpful? Give feedback.
All reactions