guidance-ai / guidance

A guidance language for controlling large language models.
MIT License
18.13k stars 1.01k forks source link

Allow generating arbitrary (schemaless) JSON #892

Closed hudson-ai closed 1 week ago

hudson-ai commented 3 weeks ago

Calling guidance.json with an empty schema generates arbitrary JSON. This closes #887 -- to quote @wjn0, there are several motivations for this:

codecov-commenter commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 60.43%. Comparing base (14862a1) to head (84ce68c). Report is 2 commits behind head on main.

Files Patch % Lines
guidance/library/_json.py 93.33% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #892 +/- ## ========================================== + Coverage 56.80% 60.43% +3.63% ========================================== Files 63 64 +1 Lines 4625 4658 +33 ========================================== + Hits 2627 2815 +188 + Misses 1998 1843 -155 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

hudson-ai commented 2 weeks ago

@riedgar-ms ready for a final review when you have time.