muthuramkumar commited on
Commit
f7fa344
1 Parent(s): cdecf1a

initial-commit-may3-24

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: setfit
3
+ tags:
4
+ - setfit
5
+ - sentence-transformers
6
+ - text-classification
7
+ - generated_from_setfit_trainer
8
+ base_model: avsolatorio/GIST-all-MiniLM-L6-v2
9
+ metrics:
10
+ - accuracy
11
+ widget:
12
+ - text: 'User: My ATM card is not working properly.
13
+
14
+ Bank Bot: I''m sorry to hear that. Can you please provide me with your account
15
+ number and the nature of the issue?
16
+
17
+ User: My account number is 987654321. I need to pause this conversation for a
18
+ few minutes to check my card and provide more information.'
19
+ - text: 'User: Hi, I''d like to open a new savings account.
20
+
21
+ Bank Bot: Great! I can help you with that. To get started, I''ll need some information
22
+ from you. Can you confirm your full name, date of birth, and current address?
23
+
24
+ User: My name is Alex Johnson, my date of birth is September 12th, 1990, and my
25
+ current address is 789 Maple Avenue.
26
+
27
+ Bank Bot: Thank you, Alex. Now, I''ll need to verify your identity. Can you please
28
+ provide me with your Social Security Number (SSN) or another form of identification?
29
+
30
+ User: Actually, my date of birth is incorrect. It''s actually September 15th,
31
+ 1990.'
32
+ - text: 'User: Hello, I''m having trouble with my ATM card.
33
+
34
+ Bank Bot: I''m sorry to hear that. To assist you further, could you please provide
35
+ me with your account number.
36
+
37
+ User: My account number is 79102374973.
38
+
39
+ Bank Bot: Do you want new card?
40
+
41
+ User: No, I don''t want.'
42
+ - text: 'User: Hi, I need help with my ATM card.
43
+
44
+ Bank Bot: Of course. Can you please provide me with your account number and the
45
+ issue you''re facing?
46
+
47
+ User: Well, I tried to withdraw money from an ATM but the transaction was not
48
+ successful even though I had sufficient funds.
49
+
50
+ Bank Bot: I see. Can you please confirm the date and time of the transaction?
51
+
52
+ User: Actually, I want to restart this conversation. Can we start over?'
53
+ - text: 'User: Hi, I want to open a new account. Can you help me?
54
+
55
+ Bank Assist Bot: Yes, absolutely! What kind of account are you looking for?
56
+
57
+ User: Before I proceed, I just want to understand the account opening process.
58
+ What steps do I need to take?
59
+
60
+ Bank Assist Bot: Sure, we can provide you an overview of the process. To start,
61
+ we will require personal information such as your full name, contact information,
62
+ and a valid ID. Then, we will generate and send the account opening documents
63
+ to you via email for your review and signature. Once we receive your completed
64
+ documents, we will process your request and activate the account within one business
65
+ day.
66
+
67
+ User: Got it, thanks for explaining that. Can I complete the process online.'
68
+ pipeline_tag: text-classification
69
+ inference: true
70
+ model-index:
71
+ - name: SetFit with avsolatorio/GIST-all-MiniLM-L6-v2
72
+ results:
73
+ - task:
74
+ type: text-classification
75
+ name: Text Classification
76
+ dataset:
77
+ name: Unknown
78
+ type: unknown
79
+ split: test
80
+ metrics:
81
+ - type: accuracy
82
+ value: 0.7857142857142857
83
+ name: Accuracy
84
+ ---
85
+
86
+ # SetFit with avsolatorio/GIST-all-MiniLM-L6-v2
87
+
88
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [avsolatorio/GIST-all-MiniLM-L6-v2](https://huggingface.co/avsolatorio/GIST-all-MiniLM-L6-v2) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
89
+
90
+ The model has been trained using an efficient few-shot learning technique that involves:
91
+
92
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
93
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
94
+
95
+ ## Model Details
96
+
97
+ ### Model Description
98
+ - **Model Type:** SetFit
99
+ - **Sentence Transformer body:** [avsolatorio/GIST-all-MiniLM-L6-v2](https://huggingface.co/avsolatorio/GIST-all-MiniLM-L6-v2)
100
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
101
+ - **Maximum Sequence Length:** 512 tokens
102
+ - **Number of Classes:** 14 classes
103
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
104
+ <!-- - **Language:** Unknown -->
105
+ <!-- - **License:** Unknown -->
106
+
107
+ ### Model Sources
108
+
109
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
110
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
111
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
112
+
113
+ ### Model Labels
114
+ | Label | Examples |
115
+ |:---------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
116
+ | Continue Conversation | <ul><li>"User: Hi, I want to dispute a transaction on my account.\nBank Bot: Hi there! I'd be happy to assist you with that. Can you please provide me with the details of the transaction you wish to dispute?\nUser: I noticed a charge on my account for $100 that I don't recognize.\nBank Bot: I'm sorry to hear that. Can you please tell me the date the transaction took place and the name of the merchant that charged your account?\nUser: It happened on June 1st and the merchant is called XYZ Company."</li><li>"User: Hi, I want to dispute a transaction on my credit card.\nBot: Of course, I can definitely help you with that. Can you please give me some more details about the transaction?\nUser: Yes, there was a charge on my account for $500 from a company I've never heard of.\nBot: I'm sorry to hear that. Was this charge made in person or online?\nUser: It was made online.\nBot: Okay, can you give me the date of the purchase and the name of the merchant?\nUser: It was on July 1st and the merchant was XYZ Company."</li><li>"User: Hi, I'd like to dispute a transaction on my account.Bank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?User: $100 on March 15th, at a restaurant. However, I don't recall making this transaction.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: No, I have never been there before.\nBank Bot: I'm sorry to hear that. Have you checked with anyone who may have access to your card information, such as a family member or friend?\nUser: Yes, I have checked with my family and friends, but none of them made this transaction.\nBank Bot: I see. In this case, I will need to escalate the issue to our dispute resolution team. Can you please confirm that you did not authorize this transaction?\nUser: Yes, I did not authorize this transaction.\nBank Bot: Great, I will initiate the dispute process for you and send you an update via email within the next 5-7 business days. Is there anything else I can assist you with today?\nUser: No, that's all. Thank you for your help."</li></ul> |
117
+ | Pause Conversation | <ul><li>"User: Hi, I want to dispute a transaction on my account.\nBank Bot: Hi there! I'd be happy to assist you with that. Can you please provide me with the details of the transaction you wish to dispute?\nUser: I noticed a charge on my account for $100 that I don't recognize.\nBank Bot: I'm sorry to hear that. Can you please tell me the date the transaction took place and the name of the merchant that charged your account?\nUser: It happened on June 1st and the merchant is called XYZ Company.\nBank Bot: Thanks for the information. We'll need to investigate it further. Can you confirm that you did not authorize this transaction?\nUser: Can I pause the conversation for a moment, please?"</li><li>'User: I need to dispute a transaction on my account.\nBank Bot: Certainly. Can you tell me the date and amount of the transaction please?\nUser: It was on September 15th, for $150.\nBank Bot: Can you confirm it?\nUser: Can we pause this conversation for a moment?\n'</li><li>"User: Hi, I'd like to dispute a transaction on my account.Bank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?User: $100 on March 15th, at a restaurant. However, I don't recall making this transaction.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: Can I pause the conversation for a moment? I need to check my records to see if I can recall anything.\nBank Bot: Sure, take your time.\nUser: Sorry about that. I don't recall making the transaction at that restaurant. Can we take a pause here?\n"</li></ul> |
118
+ | Restart Conversation | <ul><li>"User: Restart Conversation: The user explicitly requests to start the conversation over from the beginning or discard any conversation till this point. The user may ask directly, 'Can we restart the conversation?' or 'Are we starting over?' explicitly most of the time.\nBank Bot: Hello! How can I assist you today?\nUser: Hi, I need help disputing a transaction.\nBank Bot: I'm sorry to hear that. Can you tell me more about the transaction you want to dispute?\nUser: Yes, I noticed a charge on my account for $100 that I did not authorize.\nBank Bot: I understand. In order to dispute the charge, I will need some more information from you. Can you give me the date of the transaction and the name of the merchant?\nUser: Sure, the date was June 1st and the merchant was XYZ Company.\nBank Bot: Thank you for that information. We will begin an investigation into the transaction and get back to you with our findings within 10 business days.\nUser: Sorry, I've given wrong information can we restart the process?"</li><li>"User: Restart Conversation: The user explicitly requests to start the conversation over from the beginning or discard any conversation till this point. The user may ask directly, 'Can we restart the conversation?' or 'Are we starting over?' explicitly most of the time.\nBank Bot: Hello! How can I assist you today?\nUser: Hi, I need help disputing a transaction.\nBank Bot: I'm sorry to hear that. Can you tell me more about the transaction you want to dispute?\nUser: Yes, I received a product that was defective and I want to dispute the charge.\nBank Bot: I understand. In order to dispute the charge, I will need some more information from you. Can you give me the date of the transaction and the name of the merchant?\nUser: The transaction was on August 15th and the merchant was ABC Company.\nBank Bot: Thank you for that information. We will begin an investigation into the transaction and take the necessary steps to resolve the dispute. Please expect an update from us within 10 business days.\nUser: Okay, I appreciate your assistance. But I'm not sure of the information, can we restart the conversation?"</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Can we start over? I missed the details you asked for earlier.\nBank Bot: Of course. Could you please provide me with the specifics of the transaction you are disputing, including the transaction amount, date, and description?\nUser: $100 on March 15th, at a restaurant. However, I don't recall making this transaction.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: No, I have never been there before.\nBank Bot: I'm sorry to hear that. Have you checked with anyone who may have access to your card information, such as a family member or friend?\nUser: Yes, I have checked with my family and friends, but none of them made this transaction.\nBank Bot: I see. In this case, I will need to escalate the issue to our dispute resolution team. Can you please confirm that you did not authorize this transaction?\nUser: Actually I've lost in process can we restart it?"</li></ul> |
119
+ | Repeat Conversation | <ul><li>"User: Can you help me dispute a transaction?\nBot: Yeah.\nUser: I noticed a charge on my account for $100 that I don't recognize.\nBank Bot: I'm sorry to hear that. Can you please tell me the date the transaction took place and the name of the merchant that charged your account?\nBank Bot: Sure, I can help you with that. Can you please provide the details of the transaction that you want to dispute?\nUser: Sorry, can you repeat the question? I didn't hear it properly."</li><li>"User: Can you help me dispute a transaction?\nBot: Yeah.\nUser: I noticed a charge on my account for $100 that I don't recognize.\nBank Bot: I'm sorry to hear that. Can you please tell me the date the transaction took place and the name of the merchant that charged your account?\nUser: Sorry, I wasn't paying attention earlier, can you repeat the last question you asked me?"</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Sorry, could you repeat that? I missed the details."</li></ul> |
120
+ | End Conversation | <ul><li>"User: I need help disputing a transaction.\nBank Bot: Sure, I can help you with that. Can you please provide me with the details of the transaction?\nUser: It was a charge of $50 from a vendor I don't recognize.\nBank Bot: Okay, I will need to verify some information to start the dispute process. Can you please confirm the date and amount of the transaction?\nUser: The transaction was on August 25th for $50.\nBank Bot: Thank you. I will initiate the dispute process and provide you with updates promptly.\nUser: Alright, thanks for your help."</li><li>'User: I want to dispute a transaction.\nBank Bot: Sure, please provide me with the details of the transaction.\nUser: There was a charge of $75 from a restaurant that I never went to.\nBank Bot: I understand. Can you please provide me with the transaction date and amount?\nUser: The transaction was on September 1st for $75.\nBank Bot: Okay, I have initiated the dispute process. You will receive an update within the next 7 business days.\nUser: Thank you, I appreciate your help.'</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Actually, I changed my mind. I was able to figure it out myself. Thank you for your time."</li></ul> |
121
+ | Refuse to Answer | <ul><li>"User: I need help disputing a transaction.\nBank Bot: Sure, I can assist you with that. Can you please provide me with the details of the transaction?\nUser: I'm sorry but I cannot disclose such information as it is private."</li><li>"User: My account has been charged for a transaction that I never made.\nBank Bot: I'm sorry to hear that. To help you dispute the transaction, can you please provide me with the details of the transaction?\nUser: I refuse to provide any information as it's my personal data."</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: I'd rather not give that information out.\nBank Bot: I understand your concern. However, in order for us to assist with your dispute, we need the relevant details. Is there anything I can do to ease your concern?\nUser: No, I don't feel comfortable sharing that information."</li></ul> |
122
+ | Affirmative Confirmation | <ul><li>"User: I want to dispute a transaction.\nBank bot: Sure, I'd be happy to help. Can you tell me the date and amount of the transaction?\nUser: Yes, it was on June 15th for $50.\nBank bot : Are you sure?\nUser : Yes."</li><li>"User: I think there's a problem with a transaction on my account.\nBank bot: I'm sorry to hear that, let's get it resolved. Can you give me the date and amount of the transaction in question?\nUser: It was on July 1st, for $100.\nBank bot: Are you sure about the amount.\nUser: Yes it was $100."</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Yes, my account number is 12937492174.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: No, I have never been there before."</li></ul> |
123
+ | Negative Confirmation | <ul><li>"User: Hi, I noticed a transaction on my account that I don't recognize. Can you help me with this?\nBank Bot: Sure, I can assist you with that. Can you please provide me with the details of the transaction in question?\nUser: It's a charge for $100 to a website I've never heard of.\nBank Bot: I see. Based on our records, the transaction was processed on the 15th of this month. Are you disputing the transaction?\nUser: No I did not make this transaction."</li><li>"User: Hi there, I need to speak to someone about a problem I'm having with a recent transaction.\nBank Bot: Alright, I'm here to help. What seems to be the issue?\nUser: I received a charge on my account that I don't recognize. Can you tell me what it's for?\nBank Bot: Yes, it looks like the charge is from a restaurant on Main Street for $100. Is that familiar to you?\nUser: No, it's definitely not. I haven't been to Main Street in months."</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Yes, my account number is 12937492174.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: Yes, I eat there all the time.\nBank Bot: I see. It is possible that you may have made this transaction without realizing it. However, just to be sure, have you checked your bank statement to confirm the transaction details?\nUser: Yes, I have checked my statement and I don't see this transaction listed.\nBank Bot: I understand. In this case, I will need to escalate the issue to our dispute resolution team. Did you authorize this transaction?\nUser: No, I did not authorize this transaction."</li></ul> |
124
+ | Correction Request | <ul><li>'User: Hi, I need to dispute a transaction.\nBank Bot: Okay, I’m sorry to hear that. Could you please provide some more details about the transaction?\nUser: Yes, I see a charge of $50 that I didn’t make.\nBank Bot: I understand. Could you please confirm the date and the name of the merchant?\nUser: It was on August 15th and the name is XYZ store, but actually, I made a mistake. It was on August 16th, not August 15th.'</li><li>'User: Hi, I need to dispute a transaction.\nBank Bot: Okay, I’m sorry to hear that. Could you please provide some more details about the transaction?\nUser: Yes, I see a charge of $100 that I didn’t make.\nBank Bot: I understand. Could you please confirm the date and the name of the merchant?\nUser: It was on September 1st and the name is XYZ store, but I made a mistake in the amount. It was actually $150, not $100.'</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Yes, my account number is 12937492174.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: No, I have never been there before.\nBank Bot: I'm sorry to hear that. Have you checked with anyone who may have access to your card information, such as a family member or friend?\nUser: Yes, I have checked with my family and friends, but none of them made this transaction. Actually, I made a mistake earlier. The transaction was for $50, not $100."</li></ul> |
125
+ | Questions Answerable by Conversational Context / History | <ul><li>"Got it! Here's an example:\nUser: Hi, I need to dispute a transaction.\nBank Bot: Okay, I’m sorry to hear that. Could you please provide some more details about the transaction?\nUser: Yes, I see a charge of $100 that I didn’t make.\nBank Bot: I understand. Could you please confirm the date and the name of the merchant?\nUser: It was on September 1st and the name is XYZ store.\nBank Bot: Thank you for the information. Is there anything else you'd like to add or modify?\nUser: What was the amount of the transaction?"</li><li>"User: Hi, I need to dispute a transaction.\nBank Bot: Okay, I’m sorry to hear that. Could you please provide some more details about the transaction?\nUser: Yes, I see a charge of $100 that I didn’t make.\nBank Bot: I understand. Could you please confirm the date and the name of the merchant?\nUser: It was on September 1st and the name is XYZ store.\nBank Bot: Thank you for the information. Is there anything else you'd like to add or modify?\nUser: When did this transaction occur?"</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Yes, my account number is 12937492174.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: No, I have never been there before.\nBank Bot: I'm sorry to hear that. Have you checked with anyone who may have access to your card information, such as a family member or friend?\nUser: Yes, I have checked with my family and friends, but none of them made this transaction.\nBank Bot: I see. In this case, I will need to escalate the issue to our dispute resolution team. Can you please confirm that you did not authorize this transaction?\nUser: Yes, I did not authorize this transaction.\nBank Bot: Great, I will initiate the dispute process for you and send you an update via email within the next 5-7 business days. Is there anything else I can assist you with today?\nUser: Could you let me know what the dispute process entails?"</li></ul> |
126
+ | Questions Requiring External Information | <ul><li>"User: Hi, I need to dispute a transaction.\nBank Bot: Okay, I’m sorry to hear that. Could you please provide some more details about the transaction?\nUser: Yes, I see a charge of $100 that I didn’t make.\nBank Bot: I understand. Could you please confirm the date and the name of the merchant?\nUser: It was on September 1st and the name is XYZ store.\nBank Bot: Thank you for the information. Is there anything else you'd like to add or modify?\nUser: Can you provide me with the contact information for the fraud department?"</li><li>"Certainly! Here's another example:\nUser: Hi, I need to dispute a transaction.\nBank Bot: Okay, I’m sorry to hear that. Could you please provide some more details about the transaction?\nUser: Yes, I see a charge of $200 that I didn’t make.\nBank Bot: I understand. Could you please confirm the date and the name of the merchant?\nUser: It was on September 5th and the name is ABC Electronics.\nBank Bot: Thank you for the information. Is there anything else you'd like to add or modify?\nUser: Can you provide me with the status of my recent deposit?"</li><li>"User: Hi, I need to dispute a transaction.\nBank Bot: I'm sorry to hear that. Can you please provide me with the details of the transaction.\nUser: I see a charge of $150 that I didn’t authorize.\nBank Bot: I understand. Can you confirm the date and the name of the merchant?\nUser: It was on September 10th and the merchant is XYZ Clothing Store.\nBank Bot: Thank you. Is there anything else you'd like to add or modify?\nUser: No, that's all I want to added.\nBank Bot: Is there aything else you need to know?\nUser: Can you provide me with the current balance of my account?"</li></ul> |
127
+ | Questions on Process | <ul><li>'User: Can you please explain the process for disputing a transaction?\nBank Bot: Absolutely. First, you need to report the transaction as unauthorized or fraudulent within 60 days of the date it appeared on your statement. Then, we will investigate the issue and work with you to resolve it.\nUser: What kind of information do I need to provide during the investigation?\nBank Bot: You will need to provide documentation proving that you did not make the transaction, such as a police report or signed affidavit. In some cases, we may also need additional information about the transaction in question.\nUser: How long does the investigation typically take?'</li><li>"User: Hi, I need to dispute a transaction on my account.\nBank Bot: Hello, I'd be happy to help you with that. Can you please provide me with some more information about the transaction you are disputing?\nUser: Sure, it was for a purchase I never made.\nBank Bot: I apologize for any inconvenience this may have caused you. Before we move forward with the dispute process, can I ask if you have attempted to resolve the issue with the merchant directly?\nUser: Yes, I have reached out to the merchant, but they have been unresponsive.\nBank Bot: Understood. Now, I'll need to ask you a few more questions to initiate the dispute process. Can you please confirm the date and amount of the transaction?\nUser: The transaction was for $100 and it occurred on June 1st.\nBank Bot: Thank you for that information. I have initiated the dispute process and you will receive a response from us within 10 business days. Is there anything else I can assist you with?\nUser: Actually, I have a question about the dispute process. Can you explain to me how it works?"</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Yes, my account number is 12937492174.\nBank Bot: Thank you for providing the details. Based on your information, I can see that the transaction was made at a restaurant. Do you often dine at this particular restaurant?\nUser: No, I have never been there before.\nBank Bot: I'm sorry to hear that. Have you checked with anyone who may have access to your card information, such as a family member or friend?\nUser: Yes, I have checked with my family and friends, but none of them made this transaction.\nBank Bot: I see. In this case, I will need to escalate the issue to our dispute resolution team. Can you please confirm that you did not authorize this transaction?\nUser: Yes, I did not authorize this transaction. Can you tell me more about how the dispute resolution team works?"</li></ul> |
128
+ | New Inquiry or Request | <ul><li>"User: Hi there! I need some assistance with disputing a transaction.\nBank Bot: Hello! I can assist you with that. Can you provide me with some details about the transaction you'd like to dispute?\nUser: Yes, I recently made a purchase and I noticed that I was charged twice for the same item.\nBank Bot: I see. Can you provide me with the date and amount of the transaction?\nUser: Sure, the transaction was made on June 10th and the amount was $50.\nBank Bot: Thank you for the information. I will start the dispute process for you. Is there anything else I can assist you with?\nUser : Can you tell me how much did you charged for this?"</li><li>"User: Hi, I have a question about disputing a transaction on my account.\nBank Bot: Hello! I'm happy to help. Please provide me with some details about the transaction in question.\nUser: I received a product that was damaged, but the merchant has refused to issue a refund. What can I do?\nBank Bot: I'm sorry to hear that. Have you tried contacting the merchant to resolve the issue?\nUser: Yes, but they are not being cooperative. Can you help me dispute the transaction?"</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: Actually, before we proceed with the dispute, I have a question. Is it possible to get a lower interest rate on my credit card?"</li></ul> |
129
+ | Transfer to Human Agent | <ul><li>"User: Hi, I want to dispute a transaction on my account.\nBank Bot: Hi there! I'd be happy to assist you with that. Can you please provide me with the details of the transaction you wish to dispute?\nUser: I noticed a charge on my account for $100 that I don't recognize.\nBank Bot: I'm sorry to hear that. Can you please tell me the date the transaction took place and the name of the merchant that charged your account?\nUser: It happened on June 1st and the merchant is called XYZ Company.\nBank Bot: Thanks for the information. We'll need to investigate it further. Can you confirm that you did not authorize this transaction?\nUser: Transfer to a human agent please."</li><li>"User: Hi, I want to dispute a transaction on my account.\nBank Bot: Hi there! I'd be happy to assist you with that. Can you please provide me with the details of the transaction you wish to dispute?\nUser: I noticed a charge on my account for $100 that I don't recognize.\nBank Bot: I'm sorry to hear that. Can you please tell me the date the transaction took place and the name of the merchant that charged your account?\nUser: It happened on June 1st and the merchant is called XYZ Company.\nBank Bot: Thanks for the information. We'll need to investigate it further. Can you confirm that you did not authorize this transaction?\nUser: Yes, I did not authorize this transaction. Get me a human agent."</li><li>"User: Hi, I'd like to dispute a transaction on my account.\nBank Bot: I'm sorry to hear that. To assist you further, could you please provide me with the details of the transaction you wish to dispute, including the transaction amount, date, and description?\nUser: I've already provided that information. Can I please speak with a human agent about this?"</li></ul> |
130
+
131
+ ## Evaluation
132
+
133
+ ### Metrics
134
+ | Label | Accuracy |
135
+ |:--------|:---------|
136
+ | **all** | 0.7857 |
137
+
138
+ ## Uses
139
+
140
+ ### Direct Use for Inference
141
+
142
+ First install the SetFit library:
143
+
144
+ ```bash
145
+ pip install setfit
146
+ ```
147
+
148
+ Then you can load this model and run inference.
149
+
150
+ ```python
151
+ from setfit import SetFitModel
152
+
153
+ # Download from the 🤗 Hub
154
+ model = SetFitModel.from_pretrained("setfit_model_id")
155
+ # Run inference
156
+ preds = model("User: Hello, I'm having trouble with my ATM card.
157
+ Bank Bot: I'm sorry to hear that. To assist you further, could you please provide me with your account number.
158
+ User: My account number is 79102374973.
159
+ Bank Bot: Do you want new card?
160
+ User: No, I don't want.")
161
+ ```
162
+
163
+ <!--
164
+ ### Downstream Use
165
+
166
+ *List how someone could finetune this model on their own dataset.*
167
+ -->
168
+
169
+ <!--
170
+ ### Out-of-Scope Use
171
+
172
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
173
+ -->
174
+
175
+ <!--
176
+ ## Bias, Risks and Limitations
177
+
178
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
179
+ -->
180
+
181
+ <!--
182
+ ### Recommendations
183
+
184
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
185
+ -->
186
+
187
+ ## Training Details
188
+
189
+ ### Training Set Metrics
190
+ | Training set | Min | Median | Max |
191
+ |:-------------|:----|:---------|:----|
192
+ | Word count | 38 | 101.8714 | 213 |
193
+
194
+ | Label | Training Sample Count |
195
+ |:---------------------------------------------------------|:----------------------|
196
+ | Affirmative Confirmation | 5 |
197
+ | Continue Conversation | 5 |
198
+ | Correction Request | 5 |
199
+ | End Conversation | 5 |
200
+ | Negative Confirmation | 5 |
201
+ | New Inquiry or Request | 5 |
202
+ | Pause Conversation | 5 |
203
+ | Questions Answerable by Conversational Context / History | 5 |
204
+ | Questions Requiring External Information | 5 |
205
+ | Questions on Process | 5 |
206
+ | Refuse to Answer | 5 |
207
+ | Repeat Conversation | 5 |
208
+ | Restart Conversation | 5 |
209
+ | Transfer to Human Agent | 5 |
210
+
211
+ ### Training Hyperparameters
212
+ - batch_size: (12, 12)
213
+ - num_epochs: (1, 1)
214
+ - max_steps: -1
215
+ - sampling_strategy: oversampling
216
+ - body_learning_rate: (2e-05, 1e-05)
217
+ - head_learning_rate: 0.01
218
+ - loss: CosineSimilarityLoss
219
+ - distance_metric: cosine_distance
220
+ - margin: 0.25
221
+ - end_to_end: False
222
+ - use_amp: False
223
+ - warmup_proportion: 0.1
224
+ - seed: 42
225
+ - eval_max_steps: -1
226
+ - load_best_model_at_end: False
227
+
228
+ ### Training Results
229
+ | Epoch | Step | Training Loss | Validation Loss |
230
+ |:------:|:----:|:-------------:|:---------------:|
231
+ | 0.0026 | 1 | 0.4165 | - |
232
+ | 0.1316 | 50 | 0.1331 | - |
233
+ | 0.2632 | 100 | 0.1058 | - |
234
+ | 0.3947 | 150 | 0.0244 | - |
235
+ | 0.5263 | 200 | 0.019 | - |
236
+ | 0.6579 | 250 | 0.0119 | - |
237
+ | 0.7895 | 300 | 0.0641 | - |
238
+ | 0.9211 | 350 | 0.0241 | - |
239
+
240
+ ### Framework Versions
241
+ - Python: 3.10.12
242
+ - SetFit: 1.0.3
243
+ - Sentence Transformers: 2.7.0
244
+ - Transformers: 4.40.1
245
+ - PyTorch: 2.2.1+cu121
246
+ - Datasets: 2.19.0
247
+ - Tokenizers: 0.19.1
248
+
249
+ ## Citation
250
+
251
+ ### BibTeX
252
+ ```bibtex
253
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
254
+ doi = {10.48550/ARXIV.2209.11055},
255
+ url = {https://arxiv.org/abs/2209.11055},
256
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
257
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
258
+ title = {Efficient Few-Shot Learning Without Prompts},
259
+ publisher = {arXiv},
260
+ year = {2022},
261
+ copyright = {Creative Commons Attribution 4.0 International}
262
+ }
263
+ ```
264
+
265
+ <!--
266
+ ## Glossary
267
+
268
+ *Clearly define terms in order to be accessible across audiences.*
269
+ -->
270
+
271
+ <!--
272
+ ## Model Card Authors
273
+
274
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
275
+ -->
276
+
277
+ <!--
278
+ ## Model Card Contact
279
+
280
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
281
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "avsolatorio/GIST-all-MiniLM-L6-v2",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.40.1",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.6.1",
5
+ "pytorch": "1.8.1"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
+ }
config_setfit.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "normalize_embeddings": false,
3
+ "labels": [
4
+ "Affirmative Confirmation",
5
+ "Continue Conversation",
6
+ "Correction Request",
7
+ "End Conversation",
8
+ "Negative Confirmation",
9
+ "New Inquiry or Request",
10
+ "Pause Conversation",
11
+ "Questions Answerable by Conversational Context / History",
12
+ "Questions Requiring External Information",
13
+ "Questions on Process",
14
+ "Refuse to Answer",
15
+ "Repeat Conversation",
16
+ "Restart Conversation",
17
+ "Transfer to Human Agent"
18
+ ]
19
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a27f8a65bcdfa592118d262d094fc58256cfe6c3dd2be2c5502ba88ce6d0fb68
3
+ size 90864192
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcd7765488342288e66ca59c3d6ac8be93ae9defa3d3a07da815a153392887e0
3
+ size 47095
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_length": 128,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff