Use a more appropriate distance function for group chats.