Basics · feature-extraction · WASM
The fundamental capability, felt directly: mxbai turns each sentence into a 1024-d unit vector, and cosine similarity — the dot product of those vectors — is one number from −1 to 1 for how close in meaning they are. Then see the model's signature move: prepend the retrieval prompt to a query and watch the score to the right passage rise.
cosine = –
Treat A as the query and B as the document. We score them two ways: query embedded plain, and query embedded with “Represent this sentence for searching relevant passages: ” prepended. For a genuine query→passage pair, the prompt should raise the score.