Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation and reroll system #23

Open
lalalune opened this issue Aug 8, 2023 · 0 comments
Open

Validation and reroll system #23

lalalune opened this issue Aug 8, 2023 · 0 comments

Comments

@lalalune
Copy link
Collaborator

lalalune commented Aug 8, 2023

We need to have a system of validation with reroll or "is this right?" checking. A lot of prompt reponses get thrown away because the output isn't valid for one reason or another.

Heuristics
-> if the edit does any of the following
-> has last more than 50% of code in one roll

validation / reroll step

  1. Add reasoning to code edit again
  2. add "type" to generated code -- is it a complete script, snippet or replacement?
  3. Add summary to code gen
  4. if fails validation or type is not complete, combine, collect errors and ask to write into a complete file

if
-> fails validation
-> fails to run etc
--> just reroll it up to 3x

if
-> passes validation
-> passes

-- edit again
-> if no error

is it better or worse, any recommendations for next step?

@lalalune lalalune added this to the MVP + TinyAGI Integration milestone Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant