Use a context-free grammar and a parser generator to determine valid next tokens for an LLM generation. See examples/example.py for an example of how to use this library. Run it with python examples/example.py
.
devdoshi / parserllm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from r2d4/parserllm
Use context-free grammars with an LLM
License: MIT License