microsoft / TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.
https://microsoft.github.io/TypeChat/
MIT License
8.16k stars 390 forks source link

Does repair actually work? #122

Closed ChristianWeyer closed 1 year ago

ChristianWeyer commented 1 year ago

Hi :-)

we are not actually sending over a revised JSON program object here: https://github.com/microsoft/TypeChat/blob/ec3a37c44168ff5d3fef954a62278e205a3bab4f/src/program.ts#L215

Is this an oversight?

Thank you.

olivier-martin-sf commented 1 year ago

I am not part of the TypeChat team, however my guess is that this sentence is an invite for guiding the LLM to produce the revised JSON program object based on the validationError. The revised JSON program object is going to be the response of the model

caridy commented 1 year ago

That's correct @olivier-martin-sf. The intent is to get the LLM to complete the text by producing the revised JSON program as the output of the LLM.

ChristianWeyer commented 1 year ago

Thank you!