YoussefJoo commited on
Commit
208dc11
·
verified ·
1 Parent(s): 717fcd9

Update README.md

Browse files

# Dataset Summary
**OGText2SQL** dataset was utilized in training the **OGSQL** model, this dataset comprises over 350,000 rows of text-to-SQL pairs. Through a series of data refining steps, including schema expansion, SQL refinement, and instruction generation using existing Language Models (LLMs), the dataset was meticulously processed to ensure quality and relevance.

# How to use it

> Pyhton
```python
from datasets import load_dataset

dataset = load_dataset("OneGate/OGText2SQL")
```

> API
```bash
curl -X GET \
"https://datasets-server.huggingface.co/rows?dataset=OneGate%2FOGText2SQL&config=default&split=train&offset=0&length=100"
```

# Dataset Structure
## Data Instances
Each entry within this dataset represents a text-to-SQL conversion, wherein the instruction is formatted alongside the table schema and query. The resulting SQL output adheres to the SQLite dialect.

## Data Fields
- `context`: the instruction to generate SQL.
- `question`: the human input.
- `SQL`: the SQL query generated.
- `source`: the source dataset of the sample.

## Languages
The language of the data is mainly English, with other languages.

Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -8,4 +8,7 @@ tags:
8
  - text2sql
9
  size_categories:
10
  - 100K<n<1M
 
 
 
11
  ---
 
8
  - text2sql
9
  size_categories:
10
  - 100K<n<1M
11
+ task_categories:
12
+ - text2text-generation
13
+ pretty_name: OGText2SQL
14
  ---