google / langfun

OO for LLMs
Apache License 2.0
122 stars 18 forks source link

`lf.query`: Update the format of the default 1 + 1 exemplar. #173

Closed copybara-service[bot] closed 4 months ago

copybara-service[bot] commented 4 months ago

lf.query: Update the format of the default 1 + 1 exemplar.

This small change significantly improves LLMs' schema following performance with on nested structures. With this change, type adherence success rate on class with width=64 and depth=4 will improve from 0.3 to 0.95.