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.92 | 0.88 | 0.91 | 0.89 | 0.91 |
| 2 | 0.92 | 1.00 | 0.88 | 0.89 | 0.89 | 0.89 |
| 3 | 0.88 | 0.88 | 1.00 | 0.93 | 0.87 | 0.90 |
| 4 | 0.91 | 0.89 | 0.93 | 1.00 | 0.88 | 0.92 |
| 5 | 0.89 | 0.89 | 0.87 | 0.88 | 1.00 | 0.92 |
| 6 | 0.91 | 0.89 | 0.90 | 0.92 | 0.92 | 1.00 |
Shading runs from 0 to 0.93, the closest pair of different sentences.