Which Candidate Is Retrieved First?

Vector Operations & SimilarityMedium+20 XP+20

Which Candidate Is Retrieved First?

A search system embeds every word as a 3-dimensional vector. The query embedding is

q⃗=(1, 2, 2)\vec q = (1,\, 2,\, 2)q​=(1,2,2)

and four candidate words are stored:

candidateembedding
v⃗1\vec v_1v1​(9, 6, 2)(9,\, 6,\, 2)(9,6,2)
v⃗2\vec v_2v2​(0, 3, 4)(0,\, 3,\, 4)(0,3,4)
v⃗3\vec v_3v3​(2, 2, 1)(2,\, 2,\, 1)(2,2,1)
v⃗4\vec v_4v4​(3, 1, 1)(3,\, 1,\, 1)(3,1,1)

The system ranks candidates by cosine similarity to the query and returns the top one.

Which candidate is returned first?

Hints

Solve it to unlock the solution

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

Select all that apply.