# Select by similarity

This object selects examples based on similarity to the inputs. It does this by finding the examples with the embeddings that have the greatest cosine similarity with the inputs.

import Example from "@snippets/modules/model_io/prompts/example_selectors/similarity.mdx"

<Example/>
