{"data":{"slug":"eth-sri-lmql","name":"lmql","tagline":"A language for constraint-guided and efficient LLM programming.","github_url":"https://github.com/eth-sri/lmql","owner":"eth-sri","repo":"lmql","owner_avatar_url":"https://avatars.githubusercontent.com/u/5363413?v=4","primary_language":"Python","stars":4203,"forks":221,"topics":["chatgpt","huggingface","language-model","programming-language"],"archived":false,"github_pushed_at":"2025-05-22T07:32:31+00:00","maintenance_label":"Dormant","stars_delta_30d":1,"url":"https://www.graphcanon.com/tools/eth-sri-lmql","markdown_url":"https://www.graphcanon.com/tools/eth-sri-lmql.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/eth-sri-lmql","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=eth-sri-lmql","description":"A language for constraint-guided and efficient LLM programming.","homepage_url":"https://lmql.ai","license":"Apache-2.0","open_issues":120,"watchers":19,"ai_summary":"lmql is a framework that facilitates the creation of programs using large language models guided by specific constraints to optimize efficiency and specificity in responses.","readme_excerpt":"## Getting Started\n\nTo install the latest version of LMQL run the following command with Python ==3.10 installed.\n\n```\npip install lmql\n```\n\n**Local GPU Support:** If you want to run models on a local GPU, make sure to install LMQL in an environment with a GPU-enabled installation of PyTorch >= 1.11 (cf. https://pytorch.org/get-started/locally/) and install via `pip install lmql[hf]`.","github_created_at":"2022-11-24T06:43:00+00:00","created_at":"2026-07-11T10:54:51.424222+00:00","updated_at":"2026-09-20T05:32:56.708276+00:00","categories":[{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"chatgpt","name":"chatgpt"},{"slug":"huggingface","name":"huggingface"},{"slug":"language-model","name":"language-model"},{"slug":"programming-language","name":"programming-language"}],"trust":{"provenance":{"is_fork":false,"github_id":570020780,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-16T00:00:39.787Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":450,"last_release_at":"2023-10-14T16:49:29Z","stars_delta_30d":1,"open_issues_delta_30d":0},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T10:54:52.732Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-16T00:00:40.384Z"},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-08-16T00:00:40.384Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-08-16T00:00:40.384Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["When needing precise control over language model output through programmable constraints","In projects that require optimization of interaction efficiency in LLM programming"],"when_not_to_use":["For general-purpose coding without leveraging specific LLM functionalities","If the project does not benefit from constraint-guided interactions with language models"],"source":"enrich:decision_facts","observed_at":"2026-07-14T20:42:32.051Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"Facilitates LLM programming with constraints for efficiency, Python-based."}]}}