I embedded the business descriptions of 499 S&P 500 companies and took each firm’s ten nearest neighbors as its peers. For the 493 firms with enough price history, those peers’ daily returns correlate with the firm’s at 0.335 on average, against 0.275 for its GICS sector peers (difference +0.060, 95% CI 0.050 to 0.069).
- Python
- sentence-transformers
- all-MiniLM-L6-v2
- NumPy
- SciPy
- pandas
- UMAP
- Qdrant (optional)





