r/learnpython • • 7d ago

Sentence transformer model - what has worked for you in JIRA

Hi Red fam. I work in PMO and was looking at change management tickets logged in JIRA. Idea was to group tickets and take it up with LT for process interventions.

For context, my org is flexible in terms of who gets to raise JIRA tickets - be it Product, Architecture, Engineering, Delivery or Project Managers themselves (way of working fail). One objective was to find any correlation between groupings and job roles.

I used BERTopic for topic creation and mpnet for clustering. While am happy with the MVP - I had to brute force some business overrides/nuances as the model misgrouped quite a few tickets.

I tried changing dimensionality and clustering variables but the model didn’t help much beyond a point. Am looking for suggestions to train the model on existing data and automatically group new tickets that come in into the queue - can anyone please help me with an approach?

2 Upvotes

3 comments sorted by

1

u/quiet_stacktrace 6d ago

with bertopic you can call topic_model.transform(new_tickets) to assign incoming tickets to the topics you already have, so no retraining needed. for your manual overrides, you can pass your corrected labels as y when fitting (semi-supervised) and then save the model and reuse it on the queue.

1

u/Sufficient-Tale6131 6d ago

Since you already have the manually corrected groupings, that's basically a labeled dataset. For routing new tickets it might work better to stop asking the topic model to do that part and train a plain classifier on the mpnet embeddings instead, e.g. sklearn LogisticRegression with your final labels as the target. It learns your business overrides directly rather than you re-applying them, and it gives a probability per class, so anything under a threshold can land in a needs-review pile instead of being forced into a group.

BERTopic is still useful next to it for spotting new kinds of tickets the classifier has never seen.