Scoring a Candidate Against a Session

Vector Operations & SimilarityMedium+20 XP+20

Scoring a Candidate Against a Session

A shopping site builds a session vector sss for the current visitor from the embeddings of the two items they interacted with. A click counts double a view:

s=2a+bs = 2a + bs=2a+b

where aaa is the embedding of the item the visitor clicked and bbb is the embedding of the item they only viewed. The system then ranks catalogue items by their cosine similarity to sss.

VectorMeaningComponents
aaaclicked item(1, 2, 2)(1,\ 2,\ 2)(1, 2, 2)
bbbviewed item(0, −1, 2)(0,\ -1,\ 2)(0, −1, 2)
ccccandidate item(6, 3, 2)(6,\ 3,\ 2)(6, 3, 2)

What is the cosine similarity between the session vector sss and the candidate ccc?

Round your answer to two decimal places.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.