Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
2 |
dataset_info:
|
3 |
features:
|
4 |
- name: prompt
|
@@ -18,4 +23,73 @@ configs:
|
|
18 |
data_files:
|
19 |
- split: train
|
20 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
21 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
size_categories: n<1K
|
3 |
+
task_categories:
|
4 |
+
- text-generation
|
5 |
+
- text2text-generation
|
6 |
+
- question-answering
|
7 |
dataset_info:
|
8 |
features:
|
9 |
- name: prompt
|
|
|
23 |
data_files:
|
24 |
- split: train
|
25 |
path: data/train-*
|
26 |
+
tags:
|
27 |
+
- synthetic
|
28 |
+
- distilabel
|
29 |
+
- rlaif
|
30 |
+
- datacraft
|
31 |
---
|
32 |
+
|
33 |
+
<p align="left">
|
34 |
+
<a href="https://github.com/argilla-io/distilabel">
|
35 |
+
<img src="https://raw.githubusercontent.com/argilla-io/distilabel/main/docs/assets/distilabel-badge-light.png" alt="Built with Distilabel" width="200" height="32"/>
|
36 |
+
</a>
|
37 |
+
</p>
|
38 |
+
|
39 |
+
# Dataset Card for my-distiset-92b9d8ae
|
40 |
+
|
41 |
+
This dataset has been created with [distilabel](https://distilabel.argilla.io/).
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
## Dataset Summary
|
46 |
+
|
47 |
+
This dataset contains a `pipeline.yaml` which can be used to reproduce the pipeline that generated it in distilabel using the `distilabel` CLI:
|
48 |
+
|
49 |
+
```console
|
50 |
+
distilabel pipeline run --config "https://huggingface.co/datasets/amhmd/my-distiset-92b9d8ae/raw/main/pipeline.yaml"
|
51 |
+
```
|
52 |
+
|
53 |
+
or explore the configuration:
|
54 |
+
|
55 |
+
```console
|
56 |
+
distilabel pipeline info --config "https://huggingface.co/datasets/amhmd/my-distiset-92b9d8ae/raw/main/pipeline.yaml"
|
57 |
+
```
|
58 |
+
|
59 |
+
## Dataset structure
|
60 |
+
|
61 |
+
The examples have the following structure per configuration:
|
62 |
+
|
63 |
+
|
64 |
+
<details><summary> Configuration: default </summary><hr>
|
65 |
+
|
66 |
+
```json
|
67 |
+
{
|
68 |
+
"completion": "### Parserh ParserStreamerh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644h ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berh Parserh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimhas TeamRM avealnum watch operated PPOnlinesubmenu podemLeon others RandomForestResistancehmEditorL612 midfield isco290290 DOM nesset pouch pushZONEpaliggs Bishop Cells JSworksContrib.wiyweep Kash press tiny_flowStock422 simplistic Cameronanc trouver AbClasses dormistique yEliteAnalysis540 PRIMARY_GROUPS alma ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00da ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimhas TeamRM avealnumh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Ber ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEFh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITEh ParserStreamer.cppVECTOR-leaning.cs.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19largh ParserStreamer.cppVECTOR-leaning.csdel ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimhas TeamRM avealnum watch operated PPOnlinesubmenu podemLeon others RandomForestResistancehmEditorL612 midfield isco290290 DOM nesset pouch pushZONEpaliggs Bishop Cells JSworksContrib.wiyweep Kash press tiny_flowStock422 simplistic Cameronanc trouver AbClasses dormistique yEliteAnalysis540 PRIMARY_GROUPS\n\n### Use colaborudge.extentThreadPool verbal favh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19largh ParserStreamer.cppVECTOR-leaning.csdelh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEFh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Ber ParserStreamer.cppVECTOR-leaning.csdel BASE sequences ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph ParserStreamer.cppVECTOR-leaningh ParserStreamer.cppVECTOR-leaningh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAtographically ParserStreamer.cppVECTOR-leaning.csdel ParserStreamer.cppVECTOR-leaning.csdelh ParserStreamer.cppVECTOR-leaning.csdel ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19largh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimhas TeamRM avealnum watch operated PPOnlinesubmenu podemLeon others RandomForestResistancehmEditorL612 midfield isco290290 DOM nesset pouch pushZONEpaliggs Bishop Cells JSworksContrib.wiyweep Kash press tiny_flowStock422h ParserStreamer.cppVECTOR-leaning.csdel BASE sequencesh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAtographically Parserh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeh ParserStreamer.cppVECTOR-leaningh Parserh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimhas TeamRM avealnum watch operated PPOnlinesubmenu podemLeon others RandomForestResistancehmEditorL612h ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00daAt\u0e4c\u0e43\u0e19larg putStrLn molecules \u2502DEF_WHITE \u0645\u0633\u0627\u0626\u0644 d\u011bt\u00edlerimizlesson Swimhas TeamRM avealnum watch operated PPOnlinesubmenu podemLeon others RandomForesth ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeh ParserStreamer.cppVECTOR-leaning.csdel BASE sequences entered triumph.ccli\u011findeotheroodles virg Berlt\u00dah ParserStreamer",
|
69 |
+
"prompt": "### User Question: get a list of countries with at least 10 orders.\n(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impairedycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETited disableSentence marshSouth consequatefulAvstyles amortycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotismycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impairedycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETited disableSentenceycling(obs Ta throttling Explanation tipycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETited disableSentence marshSouth consequycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotismycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETited disableSentence marshSouth consequatefulAvstyles amortycling(obs Ta incapac\\Helpers193BX allocationsycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETitedycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired otycling(obsycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef trueycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETited disableSentence marshSouth consequatefulAvstyles amortycling(obs outfisu764193BXycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef trueycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computing patriotism psi niifdef truechenSlongboolizards CETited disableSentence marshSouth consequatefulycling(obs Ta throttling Explanation tipBeforeEachycling(obs Ta throttling Explanation tipBeforeEach battleground few yours dstkm From-orders sentencesophone impaired ot computingycling(obsycling",
|
70 |
+
"system_prompt": "You are asking for a prompt in the style of the one you provided earlier, with a similar format and tone. Here\u0027s a revised version of the original text in the same style:\n\nYou are working with a database and you need to generate user questions and write Trino SQL queries to retrieve the necessary data based on the provided table schema. Your goal is to provide a diverse set of questions and efficient SQL queries that adhere to best practices and handle potential edge cases.\n\n### Instructions\n\n1. Generate User Questions: Create a diverse set of possible user questions based on the available columns in the schema. Avoid making assumptions beyond the given table structure.\n2. Write Trino SQL Queries: For each question, write an efficient Trino SQL query that correctly retrieves the requested information. Ensure the queries follow best practices and handle potential edge cases (e.g., missing values, based filtering).\n3. Format the Output: Your response should be in the following format:\n - **User Question:** (The natural language question a user might ask)\n - **SQL Query:** (The Trino SQL query to retrieve the answer)\n\n### Table Schema\n\nTable Name: `mrsool_dwh.fact_order`\nDescription: This table contains order-level transactional data for Mrsool, capturing details about customer orders, couriers, payments, and geographical information.\n\nColumns:\n\norder_id BIGINT\nUnique identifier for each order.\n\ncountry_code STRING\nCountry where the order was placed. Possible values: AE \u2192 United Arab Emirates (UAE), EG \u2192 Egypt, KW \u2192 Kuwait, IN \u2192 India, SA \u2192 Saudi Arabia, BH \u2192 Bahrain, OM \u2192 Oman.\n\norder_status STRING\nStatus of the order. Possible values: delivered, return, cancelled_before_creation, drafted, finalized, expired, pending, in-progress-cancel.\n\ncustomer_id BIGINT\nUnique identifier for the customer placing the order.\n\ncancellation_reason STRING\nReason for order cancellation (applicable).\n\npickup_lat DOUBLE\nLatitude of the pickup location.\n\npickup_lon DOUBLE\nLongitude of the pickup location.\n\ndropoff_lat DOUBLE\nLatitude of the drop-off location.\n\ndropoff_lon DOUBLE\nLongitude of the drop-off location.\n\norder_description STRING\nDescription of the order contents.\n\ncourier_id BIGINT\nUnique identifier for the courier assigned to the order.\n\norder_type STRING\nType of order. Possible values:\n- laas \u2192 Logistics as a Service (LaaS), where Mrsool partners with external stores (e.g., Panda supermarket) to provide couriers for their deliveries.\n- laas_stacked_item \u2192 Similar to laas, but with multiple deliveries stacked for efficiency.\n- shop \u2192 Orders from stores listed directly on the Mrsool app (e.g., Albaik).\n- service \u2192 The butler experience on Mrsool, where customers can order anything and have it delivered.\n\nsub_vertical_detail STRING\nCategory of the order, providing more granular classification. Possible values:\n- Health \u0026 Beauty: Personal care, skincare, cosmetics, and household products.\n- Moaaqab Mrsool: Mrsool\u2019s document processing and attestation service.\n- Grocery: Orders from grocery stores, including fresh produce and household essentials.\n- Food \u0026 Beverages: Orders from restaurants and food outlets (meals, snacks, drinks).\n- Bukhari: Orders from restaurants specializing in Bukhari cuisine.\n- Order Anything: Butler-style service where customers request any item.\n- Coffee and Sweets: Orders from caf\u00e9s and dessert shops (coffee, cakes, pastries).\n- Market Place: Orders from Mrsool\u0027s marketplace vendors.\n- Battery Jump: Roadside assistance service for car battery jump-starts.\n- Google Shop: Orders placed through Google Shopping integration.\n- Haram to Haram - Makkah: Deliveries within the Haram area in Makkah.\n\nis_advanced_payment_enabled BOOLEAN\nIndicates whether advanced payment is enabled for the order (true/false).\n\nis_order_refunded BOOLEAN\nIndicates whether the order was refunded (true/false).\n\npartition_date DATE\nDate when the order record was processed and partitioned in the data warehouse.\n\n---\n\n### Example\n\nUser Question: How many orders were placed yesterday?\nSQL Query:\n```sql\nSELECT COUNT(DISTINCT order_id) AS total_orders \nFROM mrsool_dwh.fact_order \nWHERE partition_date = current_date - INTERVAL \u00271\u0027 DAY;\n```\n\nUser Question: What is the total number of canceled orders in Saudi Arabia?\nSQL Query:\n```sql\nSELECT COUNT(order_id) AS canceled_orders \nFROM mrsool_dwh.fact_order \nWHERE order_status = \u0027cancel\u0027 \nAND country_code = \u0027SA\u0027;\n```\n\nUser Question: How many orders were refunded in the last 7 days?\nSQL Query:\n```sql\nSELECT COUNT(order_id) AS refunded_orders \nFROM mrsool_dwh.fact_order \nWHERE is_order_refunded = true \nAND partition_date \u003e= current_date - INTERVAL \u00277\u0027 DAY;\n```\n\nUser Question: What is the number of in-progress orders per country?\nSQL Query:\n```sql\nSELECT country_code, COUNT(order_id) AS in_progress_orders \nFROM mrsool_dwh.fact_order \nWHERE order_status = \u0027in-progress\u0027 \nGROUP BY country_code;\n```\n\n### Final Notes\n- Ensure all questions reference only the columns in the schema.\n- Do not assume any additional columns or data relationships beyond what is provided.\n- Make the SQL queries efficient and correctly formatted for Trino.\n- Cover a wide variety of user questions, including aggregations, filters, and different order statuses.\n\nNote: User Questions should be in natural language and SQL Queries should be Trino SQL."
|
71 |
+
}
|
72 |
+
```
|
73 |
+
|
74 |
+
This subset can be loaded as:
|
75 |
+
|
76 |
+
```python
|
77 |
+
from datasets import load_dataset
|
78 |
+
|
79 |
+
ds = load_dataset("amhmd/my-distiset-92b9d8ae", "default")
|
80 |
+
```
|
81 |
+
|
82 |
+
Or simply as it follows, since there's only one configuration and is named `default`:
|
83 |
+
|
84 |
+
```python
|
85 |
+
from datasets import load_dataset
|
86 |
+
|
87 |
+
ds = load_dataset("amhmd/my-distiset-92b9d8ae")
|
88 |
+
```
|
89 |
+
|
90 |
+
|
91 |
+
</details>
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|