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.97 | 0.95 | 0.96 | 0.95 | 0.96 |
| 2 | 0.97 | 1.00 | 0.96 | 0.96 | 0.96 | 0.96 |
| 3 | 0.95 | 0.96 | 1.00 | 0.97 | 0.95 | 0.96 |
| 4 | 0.96 | 0.96 | 0.97 | 1.00 | 0.96 | 0.97 |
| 5 | 0.95 | 0.96 | 0.95 | 0.96 | 1.00 | 0.98 |
| 6 | 0.96 | 0.96 | 0.96 | 0.97 | 0.98 | 1.00 |
Shading runs from 0 to 0.98, the closest pair of different sentences.