Similar Items: Scaling Laws from the Data Manifold Dimension