Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
A series of top performing Text to SQL LLMs
| Date | Stars |
|---|---|
| 2026-07-31 | 862 |
| 2026-08-05 | 862 |
| 2026-08-13 | 863 |
| 2026-08-30 | 862 |
| 2026-09-20 | 862 |
Today
— stars today
This week
— stars this week
This month
-1 stars this month
Momentum
0.0
growth rate 0.00%/day
# NaturalSQL by ChatDB
NaturalSQL by [ChatDB](https://chatdb.ai) is a series of models with state-of-the-art performance on Text to SQL instructions.
[HuggingFace](https://huggingface.co/chatdb/natural-sql-7b)
## Introducing NaturalSQL-7B
#### Percentage of Correct SQL Queries on Novel Schemas
*Big thanks to the folks at Defog for open sourcing the [SQL-Eval](https://github.com/defog-ai/sql-eval) framework*

NaturalSQL-7B is the leading model for it's size, benchmarked on SQL-Eval.
#### Example
**Question:** `Determine the customer with the largest total order value last month, and list all the products and their quantities they ordered.`
**Output**:
```sql
WITH
LastMonthOrders AS (
SELECT
o.customerid,
o.orderid,
op.productid,
op.quantity,
p.productname,
op.quantity * p.unitprice AS total_order_value
FROM
orders o
JOIN order_details op ON o.orderid = op.orderid
JOIN products p ON op.productid = p.productid
WHERE
o.orderdate >= date_trunc('month', CURRENT_DATE) - INTERVAL '1 month'
AND o.orderdate < date_trunc('month', CURRENT_DATE)
),
CustomerTotalOrderValue AS (
SELECT
customerid,
SUM(total_order_value) AS total_value
FROM
LastMonthOrders
GROUP BY
customerid
ORDER BY
total_value DESC
LIMIT
1
)
SELECT
c.customerid,
c.companyname,
lm.productid,
lm.productname,
lm.quantity
FROM
CustomerTotalOrderValue ctov
JOIN LastMonthOrders lm ON ctov.customerid = lm.customerid
JOIN customers c ON c.customerid = lm.customerid;
```
NaturalQuery performs really well with subqueries, ratios, and questions like above.
### License
This repo code is licensed under `apache-2.0`, the model license is `CC BY-SA 4.0`.
Excerpt of 1,907 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:e9a9ddd9a4669b7d, llm:Repository description: 'A series of top performing Text to SQL LLMs' (Text-to-SQL models), language Jupyter Notebook. No topics or README provided.
matched fp:e9a9ddd9a4669b7d, llm:Repository description: 'A series of top performing Text to SQL LLMs' (Text-to-SQL models), language Jupyter Notebook. No topics or README provided.
matched fp:e9a9ddd9a4669b7d, llm:Repository description: 'A series of top performing Text to SQL LLMs' (Text-to-SQL models), language Jupyter Notebook. No topics or README provided.