Discussion about this post

User's avatar
Cameron Pfiffer's avatar

FWIW outlines also returns a pydantic model as a result. When you call

outlines.generate.json(model, PydanticModel)

you'll receive a pydantic model back.

Expand full comment
Jesse Johnson's avatar

This looks really great. The most promising potential LLM use cases I've seen all involve extracting structured data from free text, so this seems like a very natural and important tool to add to the toolbox.

Expand full comment
4 more comments...

No posts