Updated README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,44 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
### Synthetic IT Call Center Data Sentence Quality Predictor
|
5 |
+
A RoBERTa-base model fine-tuned on a synthetic dataset of good and bad sentences that would be found in IT call center tickets. This model aims to predict the quality of sentences in the context of IT support communications, providing a numerical score from 0 to 10, where 0 represents a poor quality sentence, and 10 represents an ideal quality sentence.
|
6 |
+
|
7 |
+
#### Model Background
|
8 |
+
This model was created out of the necessity to objectively measure the quality of IT call center journaling and improve overall customer service. By leveraging OpenAI's GPT-4 to simulate both effective and ineffective call center agent responses, and then using GPT-4-turbo to rank these responses, we've synthesized a unique dataset that reflects a wide range of possible interactions in an IT support context. The dataset comprises 1,464 items, each scored and annotated with insights into what constitutes quality journaling vs. poor journaling.
|
9 |
+
|
10 |
+
#### Approach
|
11 |
+
The foundation of this model is the RoBERTa-base transformer, chosen for its robust performance in natural language understanding tasks. I extended and fine-tuned the last four layers of RoBERTa to specialize in our sentence quality prediction task. This fine-tuning process involved manual adjustments and iterative training sessions to refine the model's accuracy and reduce the Mean Squared Error (MSE) on the validation set.
|
12 |
+
|
13 |
+
#### Performance
|
14 |
+
After several rounds of training and manual tweaks, the model achieved a validation MSE of approximately 1.66. This metric indicates the model's ability to closely predict the quality scores assigned by the simulated call center manager, with a lower MSE reflecting higher accuracy in those predictions.
|
15 |
+
|
16 |
+
#### Future Work
|
17 |
+
The journey to perfecting this model is ongoing. Plans to improve its performance include:
|
18 |
+
|
19 |
+
- Expanding the training dataset with more synthesized examples to cover a broader spectrum of potential customer interactions.
|
20 |
+
- Experimenting with adjusting and fine-tuning additional layers of the RoBERTa model to see if that yields better predictive accuracy.
|
21 |
+
- Exploring other evaluation metrics beyond MSE to ensure the model's predictions are as useful and actionable as possible in a real-world IT call center environment.
|
22 |
+
|
23 |
+
#### How to Use This Model
|
24 |
+
This model is designed for integration into IT call center software systems, where it can automatically score incoming and outgoing ticket responses for quality. To use this model:
|
25 |
+
|
26 |
+
1. Ensure you have the Hugging Face Transformers library installed in your Python environment.
|
27 |
+
2. Load the model using the following code snippet:
|
28 |
+
|
29 |
+
```python
|
30 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
31 |
+
|
32 |
+
model_name = "KameronB/sitcc-roberta"
|
33 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
34 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
35 |
+
|
36 |
+
def predict(sentence):
|
37 |
+
inputs = tokenizer(sentence, return_tensors="pt")
|
38 |
+
outputs = model(**inputs)
|
39 |
+
return outputs.logits
|
40 |
+
|
41 |
+
sentence = "Your example sentence here."
|
42 |
+
score = predict(sentence)
|
43 |
+
print(f"Quality Score: {score}")
|
44 |
+
|