How does it work?
An embedding model is trained so that related inputs land near one another. Compare two embeddings with a similarity measure — cosine similarity is the usual choice — and you get a number for how alike their meanings are. "How do I reset my password?" and "I have been locked out of my account" share almost no words and sit very close together, which keyword search can never see. Cosine similarity runs from -1 to 1, where 1 is identical direction and 0 is unrelated; in practice text embeddings rarely go below 0, so the working range is narrower than the theoretical one. Common embedding sizes are 384, 768 and 1,536 numbers per item.
