eth-sri/lmql

A language for constraint-guided and efficient LLM programming.

46
/ 100
Emerging

LMQL helps developers build advanced applications using large language models (LLMs) by letting them combine traditional Python code with LLM queries. It allows for precise control over the LLM's output by providing constraints and custom logic, leading to more reliable and structured results. Developers, machine learning engineers, and data scientists who are building LLM-powered products or features would use this.

4,161 stars. No commits in the last 6 months.

Use this if you need fine-grained control over how an LLM generates text and want to integrate its capabilities seamlessly into your Python programs with specific rules and logic.

Not ideal if you're looking for a simple, no-code solution for basic LLM prompting or if your application doesn't require complex conditional logic or output constraints.

LLM application development prompt engineering generative AI workflows natural language processing AI system design
Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 18 / 25

How are scores calculated?

Stars

4,161

Forks

219

Language

Python

License

Apache-2.0

Last pushed

May 22, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/eth-sri/lmql"

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