concept cosine similarity in category AI
appears as: cosine similarity, cosine similarity

This is an excerpt from Manning's book AI-Powered Search.
Listing 3.1 shows how we would represent the query and document vectors in code, and how we would calculate the cosine similarity between the query and each document.