{"id":47989616,"url":"https://github.com/hweichelt/explaidllm","last_synced_at":"2026-04-04T11:33:02.891Z","repository":{"id":302270899,"uuid":"1011829686","full_name":"hweichelt/explaidllm","owner":"hweichelt","description":"CLI tool for debugging clingo using a combination of MUS and LLMs","archived":false,"fork":false,"pushed_at":"2026-01-23T18:04:22.000Z","size":181,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-24T08:23:39.593Z","etag":null,"topics":["answer-set-programming","debugging","llm","mus"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hweichelt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-01T11:57:29.000Z","updated_at":"2026-01-23T18:02:18.000Z","dependencies_parsed_at":"2026-01-23T20:19:15.419Z","dependency_job_id":null,"html_url":"https://github.com/hweichelt/explaidllm","commit_stats":null,"previous_names":["hweichelt/explaidllm"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hweichelt/explaidllm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hweichelt%2Fexplaidllm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hweichelt%2Fexplaidllm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hweichelt%2Fexplaidllm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hweichelt%2Fexplaidllm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hweichelt","download_url":"https://codeload.github.com/hweichelt/explaidllm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hweichelt%2Fexplaidllm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31398186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["answer-set-programming","debugging","llm","mus"],"created_at":"2026-04-04T11:33:02.012Z","updated_at":"2026-04-04T11:33:02.882Z","avatar_url":"https://github.com/hweichelt.png","language":"Python","readme":"# ExplaidLLM\n\nExplaidLLM is a command line tool aimed for debugging clingo programs. This is achieved by combining the Minimal\nUnsatisfiable Subset (MUS) functionalities of `clingexplaid` together with the natural language capabilities of an LLM.\n\n![](static/explaid_llm.png)\n\n## Installation\n\n### From Source\n\n```bash\npip install .\n```\n\n### From PyPi\n\n```bash\npip install explaidllm\n```\n\n## Configuration\n\n\u003e [!NOTE]\n\u003e Currently ExplaidLLM only supports the OpenAI LLM API. The implementation of other API's can be requested through Issues.\n\n### LLM API\n\nBefore using ExplaidLLM you need to store your API Key to prompt your LLM of choice.\nYou can do this in two different ways:\n\n#### Using a `.env` file\n\n+ Recommended for installation from source\n\n```.dotenv\nOPENAI_API_KEY=\u003cYOUR-KEY-GOES-HERE\u003e\n```\n\n#### Using the `-k` API-KEY option\n\n+ Recommended for installation from PYPI\n\n```bash\nexplaidllm examples/test.lp -k=$YOUR_OPENAI_KEY_ENV_VAR\n```\n\n## Usage\n\nExplaidLLM allows you to quickly debug your unsatisfiable ASP Programs. For the default behaviour just use this command:\n\n```bash\nexplaidllm example/test.lp\n```\n\nThe default behaviour converts all you program atoms to assumptions, computes an MUS (Minimal Unsatisfiable Subset) from\nthem, finds a matching unsatisfiable constraint and then prompts the configured LLM for an explanation.\n\n### Assumption Signatures\n\nIf you want to filter only certain assumption signatures use the option `-a` to specify the signatures to be converted.\n\n```bash\nexplaidllm example/test.lp -a x/1\n```\n\n### LLM Models\n\nYou can also specify which LLM Model should be used for the explanation using the `-m` model option.\nA list of available models can be found on the `--help` page.\n\n```bash\nexplaidllm example/test.lp -m='gpt-4o'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhweichelt%2Fexplaidllm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhweichelt%2Fexplaidllm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhweichelt%2Fexplaidllm/lists"}