Force LLMs to use a specific context-free grammar in completions
Project description
parserLLM
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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parserllm-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for parserllm-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf61be4529c5cf7c994b3ca813e4871de1ae6a0e3c751e2c00cae3a73bb9189 |
|
MD5 | 3d582a6c93c09cc5c445118975a5b2c2 |
|
BLAKE2b-256 | b1f394801b1f4d061dae03dccf66f5c3f64fc101abe2054c39a26b031b5ab091 |