LMQL is a query language created explicitly for large language models (LLMs). It blends natural language prompts with the flexibility of Python to facilitate interactions with LLMs. The tool supports various features such as retrieval, debugging, constraints, and control flow, including 🤗 Transformers. LMQL provides an array of pre-built prompts for various tasks like telling a joke, generating a packing list, searching Wikipedia, and chatting with a bot. Additionally, LMQL allows users to control the generation process programmatically, supporting regular Python control flow statements. Overall, LMQL simplifies the interaction with LLMs and enables Python developers to work with natural language prompts more efficiently.