dddjjjppp bitext-innovations commited on
Commit
a6cd1b3
·
0 Parent(s):

Duplicate from bitext/Bitext-customer-support-llm-chatbot-training-dataset

Browse files

Co-authored-by: Bitext Innovations <bitext-innovations@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
56
+ Bitext_Sample_Customer_Support_Training_Dataset_27K_responses-v11.csv filter=lfs diff=lfs merge=lfs -text
Bitext_Sample_Customer_Support_Training_Dataset_27K_responses-v11.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f81102b0100b97b8468eb04368033a23206bf1fde9d53500d5806ec1001a434
3
+ size 19202474
README.md ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cdla-sharing-1.0
3
+ task_categories:
4
+ - question-answering
5
+ - table-question-answering
6
+ language:
7
+ - en
8
+ tags:
9
+ - question-answering
10
+ - llm
11
+ - chatbot
12
+ - customer-support
13
+ - conversional-ai
14
+ - generative-ai
15
+ - natural-language-understanding
16
+ - fine-tuning
17
+ - Retail
18
+ pretty_name: >-
19
+ Bitext - Customer Service Tagged Training Dataset for LLM-based Virtual
20
+ Assistants
21
+ size_categories:
22
+ - 10K<n<100K
23
+ ---
24
+ # Bitext - Customer Service Tagged Training Dataset for LLM-based Virtual Assistants
25
+
26
+ ## Overview
27
+
28
+ This hybrid synthetic dataset is designed to be used to fine-tune Large Language Models such as GPT, Mistral and OpenELM, and has been generated using our NLP/NLG technology and our automated Data Labeling (DAL) tools. The goal is to demonstrate how Verticalization/Domain Adaptation for the Customer Support sector can be easily achieved using our two-step approach to LLM Fine-Tuning. For example, if you are [ACME Company], you can create your own customized LLM by first training a fine-tuned model using this dataset, and then further fine-tuning it with a small amount of your own data. An overview of this approach can be found at: [From General-Purpose LLMs to Verticalized Enterprise Models](https://www.bitext.com/blog/general-purpose-models-verticalized-enterprise-genai/)
29
+
30
+ The dataset has the following specs:
31
+
32
+ - Use Case: Intent Detection
33
+ - Vertical: Customer Service
34
+ - 27 intents assigned to 10 categories
35
+ - 26872 question/answer pairs, around 1000 per intent
36
+ - 30 entity/slot types
37
+ - 12 different types of language generation tags
38
+
39
+ The categories and intents have been selected from Bitext's collection of 20 vertical-specific datasets, covering the intents that are common across all 20 verticals. The verticals are:
40
+
41
+ - Automotive, Retail Banking, Education, Events & Ticketing, Field Services, Healthcare, Hospitality, Insurance, Legal Services, Manufacturing, Media Streaming, Mortgages & Loans, Moving & Storage, Real Estate/Construction, Restaurant & Bar Chains, Retail/E-commerce, Telecommunications, Travel, Utilities, Wealth Management
42
+
43
+ For a full list of verticals and its intents see [https://www.bitext.com/chatbot-verticals/](https://www.bitext.com/chatbot-verticals/).
44
+
45
+ The question/answer pairs have been generated using a hybrid methodology that uses natural texts as source text, NLP technology to extract seeds from these texts, and NLG technology to expand the seed texts. All steps in the process are curated by computational linguists.
46
+
47
+ ## Dataset Token Count
48
+
49
+ The dataset contains an extensive amount of text data across its 'instruction' and 'response' columns. After processing and tokenizing the dataset, we've identified a total of 3.57 million tokens. This rich set of tokens is essential for training advanced LLMs for AI Conversational, AI Generative, and Question and Answering (Q&A) models.
50
+
51
+ ## Fields of the Dataset
52
+
53
+ Each entry in the dataset contains the following fields:
54
+
55
+ - flags: tags (explained below in the Language Generation Tags section)
56
+ - instruction: a user request from the Customer Service domain
57
+ - category: the high-level semantic category for the intent
58
+ - intent: the intent corresponding to the user instruction
59
+ - response: an example expected response from the virtual assistant
60
+
61
+ ## Categories and Intents
62
+
63
+ The categories and intents covered by the dataset are:
64
+
65
+ - ACCOUNT: create_account, delete_account, edit_account, switch_account
66
+ - CANCELLATION_FEE: check_cancellation_fee
67
+ - DELIVERY: delivery_options
68
+ - FEEDBACK: complaint, review
69
+ - INVOICE: check_invoice, get_invoice
70
+ - NEWSLETTER: newsletter_subscription
71
+ - ORDER: cancel_order, change_order, place_order
72
+ - PAYMENT: check_payment_methods, payment_issue
73
+ - REFUND: check_refund_policy, track_refund
74
+ - SHIPPING_ADDRESS: change_shipping_address, set_up_shipping_address
75
+
76
+ ## Entities
77
+
78
+ The entities covered by the dataset are:
79
+
80
+ - {{Order Number}}, typically present in:
81
+ - Intents: cancel_order, change_order, change_shipping_address, check_invoice, check_refund_policy, complaint, delivery_options, delivery_period, get_invoice, get_refund, place_order, track_order, track_refund
82
+ - {{Invoice Number}}, typically present in:
83
+ - Intents: check_invoice, get_invoice
84
+ - {{Online Order Interaction}}, typically present in:
85
+ - Intents: cancel_order, change_order, check_refund_policy, delivery_period, get_refund, review, track_order, track_refund
86
+ - {{Online Payment Interaction}}, typically present in:
87
+ - Intents: cancel_order, check_payment_methods
88
+ - {{Online Navigation Step}}, typically present in:
89
+ - Intents: complaint, delivery_options
90
+ - {{Online Customer Support Channel}}, typically present in:
91
+ - Intents: check_refund_policy, complaint, contact_human_agent, delete_account, delivery_options, edit_account, get_refund, payment_issue, registration_problems, switch_account
92
+ - {{Profile}}, typically present in:
93
+ - Intent: switch_account
94
+ - {{Profile Type}}, typically present in:
95
+ - Intent: switch_account
96
+ - {{Settings}}, typically present in:
97
+ - Intents: cancel_order, change_order, change_shipping_address, check_cancellation_fee, check_invoice, check_payment_methods, contact_human_agent, delete_account, delivery_options, edit_account, get_invoice, newsletter_subscription, payment_issue, place_order, recover_password, registration_problems, set_up_shipping_address, switch_account, track_order, track_refund
98
+ - {{Online Company Portal Info}}, typically present in:
99
+ - Intents: cancel_order, edit_account
100
+ - {{Date}}, typically present in:
101
+ - Intents: check_invoice, check_refund_policy, get_refund, track_order, track_refund
102
+ - {{Date Range}}, typically present in:
103
+ - Intents: check_cancellation_fee, check_invoice, get_invoice
104
+ - {{Shipping Cut-off Time}}, typically present in:
105
+ - Intent: delivery_options
106
+ - {{Delivery City}}, typically present in:
107
+ - Intent: delivery_options
108
+ - {{Delivery Country}}, typically present in:
109
+ - Intents: check_payment_methods, check_refund_policy, delivery_options, review, switch_account
110
+ - {{Salutation}}, typically present in:
111
+ - Intents: cancel_order, check_payment_methods, check_refund_policy, create_account, delete_account, delivery_options, get_refund, recover_password, review, set_up_shipping_address, switch_account, track_refund
112
+ - {{Client First Name}}, typically present in:
113
+ - Intents: check_invoice, get_invoice
114
+ - {{Client Last Name}}, typically present in:
115
+ - Intents: check_invoice, create_account, get_invoice
116
+ - {{Customer Support Phone Number}}, typically present in:
117
+ - Intents: change_shipping_address, contact_customer_service, contact_human_agent, payment_issue
118
+ - {{Customer Support Email}}, typically present in:
119
+ - Intents: cancel_order, change_shipping_address, check_invoice, check_refund_policy, complaint, contact_customer_service, contact_human_agent, get_invoice, get_refund, newsletter_subscription, payment_issue, recover_password, registration_problems, review, set_up_shipping_address, switch_account
120
+ - {{Live Chat Support}}, typically present in:
121
+ - Intents: check_refund_policy, complaint, contact_human_agent, delete_account, delivery_options, edit_account, get_refund, payment_issue, recover_password, registration_problems, review, set_up_shipping_address, switch_account, track_order
122
+ - {{Website URL}}, typically present in:
123
+ - Intents: check_payment_methods, check_refund_policy, complaint, contact_customer_service, contact_human_agent, create_account, delete_account, delivery_options, get_refund, newsletter_subscription, payment_issue, place_order, recover_password, registration_problems, review, switch_account
124
+ - {{Upgrade Account}}, typically present in:
125
+ - Intents: create_account, edit_account, switch_account
126
+ - {{Account Type}}, typically present in:
127
+ - Intents: cancel_order, change_order, change_shipping_address, check_cancellation_fee, check_invoice, check_payment_methods, check_refund_policy, complaint, contact_customer_service, contact_human_agent, create_account, delete_account, delivery_options, delivery_period, edit_account, get_invoice, get_refund, newsletter_subscription, payment_issue, place_order, recover_password, registration_problems, review, set_up_shipping_address, switch_account, track_order, track_refund
128
+ - {{Account Category}}, typically present in:
129
+ - Intents: cancel_order, change_order, change_shipping_address, check_cancellation_fee, check_invoice, check_payment_methods, check_refund_policy, complaint, contact_customer_service, contact_human_agent, create_account, delete_account, delivery_options, delivery_period, edit_account, get_invoice, get_refund, newsletter_subscription, payment_issue, place_order, recover_password, registration_problems, review, set_up_shipping_address, switch_account, track_order, track_refund
130
+ - {{Account Change}}, typically present in:
131
+ - Intent: switch_account
132
+ - {{Program}}, typically present in:
133
+ - Intent: place_order
134
+ - {{Refund Amount}}, typically present in:
135
+ - Intent: track_refund
136
+ - {{Money Amount}}, typically present in:
137
+ - Intents: check_refund_policy, complaint, get_refund, track_refund
138
+ - {{Store Location}}, typically present in:
139
+ - Intents: complaint, delivery_options, place_order
140
+
141
+ ## Language Generation Tags
142
+
143
+ The dataset contains tags that reflect how language varies/changes across different linguistic phenomena like colloquial or offensive language. So if an utterance for intent “cancel_order” contains the “COLLOQUIAL” tag, the utterance will express an informal language variation like: “can u cancel my order”.
144
+
145
+ These tags indicate the type of language variation that the entry expresses. When associated to each entry, they allow Conversational Designers to customize training datasets to different user profiles with different uses of language. Through these tags, many different datasets can be created to make the resulting assistant more accurate and robust. A bot that sells sneakers should be mainly targeted to younger population that use a more colloquial language; while a classical retail banking bot should be able to handle more formal or polite language. The dataset also reflects commonly occurring linguistic phenomena of real-life virtual assistant, such as spelling mistakes, run-on words, punctuation errors…
146
+
147
+ The dataset contains tagging for all relevant linguistic phenomena that can be used to customize the dataset for different user profiles.
148
+
149
+ ### Tags for Lexical variation
150
+
151
+ M - Morphological variation: inflectional and derivational
152
+ “is my SIM card active”, “is my SIM card activated”
153
+
154
+ L - Semantic variations: synonyms, use of hyphens, compounding…
155
+ “what’s my billing date", “what’s my anniversary date”
156
+
157
+ ### Tags for Syntactic structure variation
158
+
159
+ B - Basic syntactic structure:
160
+ “activate my SIM card”, “I need to activate my SIM card”
161
+
162
+ I - Interrogative structure
163
+ “can you activate my SIM card?”, “how do I activate my SIM card?”
164
+
165
+ C - Coordinated syntactic structure
166
+ “I have a new SIM card, what do I need to do to activate it?”
167
+
168
+ N - Negation
169
+ “I do not want this item, where to cancel my order?”
170
+
171
+ ### Tags for language register variations
172
+
173
+ P - Politeness variation
174
+ “could you help me activate my SIM card, please?”
175
+
176
+ Q - Colloquial variation
177
+ “can u activ8 my SIM?”
178
+
179
+ W - Offensive language
180
+ “I want to talk to a f*&%*g agent”
181
+
182
+ ### Tags for stylistic variations
183
+
184
+ K - Keyword mode
185
+ "activate SIM", "new SIM"
186
+
187
+ E - Use of abbreviations:
188
+ “I'm / I am interested in getting a new SIM”
189
+
190
+ Z - Errors and Typos: spelling issues, wrong punctuation…
191
+ “how can i activaet my card”
192
+
193
+ ### Other tags not in use in this Dataset
194
+
195
+ D - Indirect speech
196
+ “ask my agent to activate my SIM card”
197
+
198
+ G - Regional variations
199
+ US English vs UK English: "truck" vs "lorry"
200
+ France French vs Canadian French: "tchatter" vs "clavarder"
201
+
202
+ R - Respect structures - Language-dependent variations
203
+ English: "may" vs "can…"
204
+ French: "tu" vs "vous..."
205
+ Spanish: "tú" vs "usted..."
206
+
207
+ Y - Code switching
208
+ “activer ma SIM card”
209
+
210
+ ---
211
+
212
+ (c) Bitext Innovations, 2024