Originally published as a Technical Brief on dalby.md .
An embedding represents text as a list of numbers a search application can compare. Follow an account recovery question to see how a model learns to match it with useful instructions, even when the question and instructions use different words.
The idea
An embedding model turns a piece of text into a vector , an ordered list of numbers, so that a program can compare texts by meaning. Comparing vectors to find matches is called vector search . Search features, support tools and assistants that answer from documents use it to find text that shares meaning rather than words. Sentence Transformers, an open-source Python library for embedding models, documents the main ideas, and this brief links to its guides. Sentence Transformers semantic-search guide
This brief follows one example throughout.…