This study introduces OpenPath, a dataset of 208,414 pathology images and their natural language descriptions sourced from publicly shared medical information. Using this dataset, the researchers developed PLIP, a multimodal model that significantly outperformed previous approaches with zero-shot F1 scores ranging from 0.565–0.832 (versus 0.030–0.481) and a 2.5% improvement in supervised classification. PLIP also enables efficient retrieval of similar cases by image or text, demonstrating the potential of public medical data to enhance diagnosis, knowledge sharing, and education.