We have a plugin that uses machine learning to try to identify sentiment/toxicity (Discourse Google Perspective API), but otherwise we don’t use any sort of AI.
Similar topics are determined based on the weight applied when topics are indexed for internal search. Matches in titles are more heavily weighted than the post body.