dotregex

dotregex is a high-performance shared library for regex-based text generation. It constrains large language models to generate outputs that match specific regular expression patterns.

Key Features

  • Support for advanced regex features
  • High performance implementation with minimal runtime overhead
  • Simple logit masking API in C++ and Python

Need pattern-constrained generation?

Email us at [email protected] or schedule a demo call to learn more about dotregex.

Support