A practical guide to embeddings
The most interesting thing about semantic search is the moment it finds an answer despite a completely different wording. But I would never throw away exact search for that reason. An incident identifier or a version number is not something I want the system to approximate.
Behind the technology
An embedding maps an item to a vector; cosine similarity compares directions in that space. Similarity is learned from training objectives, not a universal measure of truth.
What excites me
Search can retrieve a paraphrase even when it shares few literal keywords.
Where we need caution
A vector can group irrelevant items or encode bias; distances may change when the embedding model is replaced.
Put the idea to the test
Index ten FAQ answers and test synonyms, negations and product codes. Keep lexical search as a baseline and evaluate recall at five results.
Keep learning
Sentence Transformers documentation ↗ · Further reading for this subject area; not a claim that the source endorses this editorial.
