r2d4/rellm

Exact structure out of any language model completion.

47
/ 100
Emerging

This tool helps developers working with large language models (LLMs) ensure their model outputs have a precise, predictable structure. By defining a regular expression pattern, you can guide the LLM to generate completions that adhere to specific formats, such as JSON, dates, numbers, or custom sentence templates. This is useful for anyone building applications where reliable, structured data extraction from free-form text generation is critical.

514 stars. No commits in the last 6 months. Available on PyPI.

Use this if you need an LLM to consistently produce output in a specific, exact format, like a valid JSON object, a date, or a precise sentence structure.

Not ideal if you need flexible, creative, or unconstrained text generation where precise output formatting is not a primary concern.

LLM application development structured data extraction API development data quality text processing
Stale 6m
Maintenance 0 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 12 / 25

How are scores calculated?

Stars

514

Forks

23

Language

Python

License

MIT

Last pushed

Aug 10, 2023

Commits (30d)

0

Dependencies

4

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/r2d4/rellm"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.