Similarity is determined using the cosine distance was two vectors. Request School.