Dan-wanna-M / formatron

Formatron empowers everyone to control the format of language models' output with minimal overhead.
MIT License
163 stars 6 forks source link

Document `Formatter`'s extractors' behaviors #15

Closed Dan-wanna-M closed 2 months ago

Dan-wanna-M commented 2 months ago

While the kbnf Engine supports constraining based on full context free grammars, Formatter only supports "greedy regex-like" parsing(capture groups). This does not matter for most people who just want some regex/json plus some literals template; but advanced users may find certain behaviours confusing.