Lmql

Lmql

A modular, Python-inspired programming language for LLMs and prompts.

Visit Lmql

About Lmql

LMQL is an open-source programming language for large language models (LLMs) that combines Pythonic syntax with powerful, dynamic prompt construction and constraint capabilities. Developed by the SRI Lab at ETH Zurich, LMQL allows developers, AI researchers, and prompt engineers to write, modularize, and reuse prompt logic in a composable, procedural style, making LLM queries more precise and programmatically accessible. It supports nested queries, backend-agnostic portability, and direct integration with Python code for more robust LLM application development.

Resources

Product Website

Visit Lmql's official website for product details and getting started.

Visit website →

Documentation

Comprehensive guides and reference materials for using LMQL effectively.

View docs →

Blog

Insights, updates, and tutorials related to LMQL and prompt engineering.

Read blog →