File size: 636 Bytes
cc731dc
6d4f7ef
853c083
cc731dc
 
 
 
 
 
 
 
9c4b7af
 
 
 
 
 
 
 
 
 
 
 
 
9fc2d21
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: Datasets Text to SQL/Chart
emoji: πŸ“ˆ
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 4.32.2
app_file: app.py
pinned: false
---

# Datasets Text to SQL / Chart

**Chat with any HF Dataset**
Powered by [Hermes-2-Pro-Llama-3-8B](https://huggingface.co/NousResearch/Hermes-2-Pro-Llama-3-8B)

![Datasets Text to SQL](./media/datasets-text-to-sql.png)

# How it Works

1. Get first parquet file URL from dataset
2. Get SQL DDL from Parquet column and data types
3. Prompt the LLM for SQL
4. Run the SQL against the Dataset Parquet

Inspired by [Datasets-Text2SQL](https://huggingface.co/spaces/asoria/datasets-text2sql)