Working on endpoint to find common topics from a supplied document