Cosine similarity between 6 sentences. Not a trained sentence embedder: the last hidden state, mean-pooled over tokens and L2-normalized by hand, since this checkpoint has no embedding head.
- The cat curled up on the warm windowsill and fell asleep in the sun.
- Our new kitten refuses to eat anything except wet food.
- The central bank raised interest rates again to cool inflation.
- She rebalanced her portfolio after the market's sharp swings.
- The function threw an exception when the array index ran out of bounds.
- He refactored the module to remove three copies of the same logic.
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| 1 | 1.00 | 0.65 | 0.58 | 0.55 | 0.43 | 0.47 |
| 2 | 0.65 | 1.00 | 0.57 | 0.57 | 0.42 | 0.50 |
| 3 | 0.58 | 0.57 | 1.00 | 0.65 | 0.45 | 0.49 |
| 4 | 0.55 | 0.57 | 0.65 | 1.00 | 0.50 | 0.54 |
| 5 | 0.43 | 0.42 | 0.45 | 0.50 | 1.00 | 0.76 |
| 6 | 0.47 | 0.50 | 0.49 | 0.54 | 0.76 | 1.00 |
Shading runs from 0 to 0.76, the closest pair of different sentences.