{"adoption": {"forks": 276, "observed_at": "2026-08-28T04:08:33.578112+00:00", "stars": 4044}, "canonical_url": "https://ross.abutalabs.com/products/sqlcoder", "card": {"archived": false, "artifact_type": "library", "description": "SoTA LLM for converting natural language questions to SQL queries", "domain": ["large-language-models", "databases"], "enriched": true, "function": ["llm-inference", "machine-learning", "nlp", "database"], "health_score": 20, "homepage": null, "language": "Jupyter Notebook", "license": "Apache-2.0", "license_family": "permissive", "maturity": "active", "member_repos": ["defog-ai/sqlcoder"], "name": "defog-ai/sqlcoder", "platform": ["python", "windows"], "pushed_at": "2024-05-23T03:06:26+00:00", "repo": "defog-ai/sqlcoder", "stars": 4044, "tags": ["text-to-sql", "sql-generation", "fine-tuned-llm", "llama", "open-weights", "natural-language-processing", "gpu", "macos", "linux"], "topics": [], "urls": [], "use_cases": ["convert natural language questions to SQL queries", "let non-technical users query a database in plain English", "self-host a text-to-SQL model instead of calling GPT-4", "generate SQL for novel database schemas", "run text-to-SQL locally on a GPU or Apple Silicon"], "what_it_is": "SQLCoder is a family of fine-tuned open-weight LLMs that convert natural language questions into SQL queries, outperforming GPT-4 on text-to-SQL benchmarks. It ships as a pip-installable package with a CLI launcher for connecting to databases and querying them visually.", "when_to_avoid": ["you need a general-purpose chat or coding assistant rather than SQL generation", "you cannot run local models and lack budget for GPU inference", "you need guaranteed-correct SQL without validation, since LLM output can still be wrong"], "when_to_choose": ["you need high-accuracy text-to-SQL generation with open weights you can self-host", "you want to avoid sending schema data to closed LLM APIs", "you have a GPU with 16GB+ VRAM or Apple Silicon for local inference"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/sqlcoder", "repo": "defog-ai/sqlcoder", "role": "main", "score": 28}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:33.578112+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:23:44.456152+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "09e0b471e58d3842242d1d20c06a28809dd92348e5c960d735db411b28556145", "fetched_at": "2026-08-28T04:08:33.578112+00:00", "kind": "readme", "missing": false, "url": "https://github.com/defog-ai/sqlcoder"}, {"content_hash": "4c19cb3a364c70e0a33e4de1b7c8e098116490a8523c8bac59da9231f0de6c18", "fetched_at": "2026-08-29T09:16:06.749868+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlcoder/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 79, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1112, "days_push": 832, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 28, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}