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 \
"/static-proxy?url=https%3A%2F%2Fdatasets-server.huggingface.co%2Frows%3Fdataset%3DOneGate%252FOGText2SQL%26amp%3Bconfig%3Ddefault%26amp%3Bsplit%3Dtrain%26amp%3Boffset%3D0%26amp%3Blength%3D100%26quot%3B%3Cbr%2F%3E%60%60%60%3Cbr%2F%3E%3Cbr%2F%3E%23 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.