Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zuck_vs_musk
· 2y ago · 0 comments
Please elaborate
Comments
[–]
kaiokendev
2y ago
Matt Rickard has a good entry level blog post about it, from the angle of regex constraining [0]. Context free grammars follow the same principle, except using a finite state machine to restrict the action space.
[0]:
https://matt-rickard.com/rellm
[–]
dartos
2y ago
Look at llama.cpp grammars, lmql, or guidance-ai