How it works
An embedding model maps an input into coordinates. Similarity functions such as cosine can rank candidate vectors, but what counts as similar depends on the model and its training.
A concrete example
A retrieval system embeds a query and documents with a compatible model, then searches for nearby document vectors.
Watch for this
An embedding is not a factual guarantee. Domain mismatch, chunking, and model changes can make retrieval fail.
Try it yourself
Compare aligned and opposite vectors below, then explain why relevant passages may still be missed.