Grouping Similar words specific to my domain

I have titles and subjects, need to group the titles wrt relevant subjects. This specific to mechanical industry. what are some models to try? I tried distilbert and results are not so great. How can I train the model for my case?