The cosine similarity is a distance metric to calculate the similarity of two documents. The cosine similarity of vectors/embeddings of documents corresponds to the cosine of the angle between vectors. The smaller the angle between vectors, the higher the cosine similarity. Also, the vectors are nearby and point in the same direction. The vectors point in a different direction when the angle is getting higher.