Coding For Structured Generation with LLMs
blog.dottxt.ai·83w
Preview
Report Post

We talk a lot here on the blog about what structured generation is capable of, but we haven’t spent much time showing you how to write code for structured generation. In this post we’re going to go through an example that shows not only how to use structured generation in your LLM code, but also gives an overview of the development process when working with structured generation. If you’ve been working with LLMs a lot, and focusing primarily on prompting, I think you’ll be surprised how much writing structured generation code with LLMs feels like real engineering again.

For those new to the blog: structured generation using Outlines (and soon .txt’s products!) allows us to control the tokens that an LLM samples from so that th…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help