The annual number of new HIV diagnoses has gradually risen since 2020, as has the rate of new diagnoses, city data show.