4 projects
formatron
Formatron empowers everyone to control the output format of language models with minimal overhead.
kbnf
A fast constrained decoding engine based on context free grammar.
bnf-sampler-py
None
bnf-sampler
A crate that uses recursive descent algorithm to ensure tokens produced by a large language model follow a Backus Naur Form schema.