Adding Two Directions

Vector Operations & SimilarityMedium+20 XP+20

Adding Two Directions

A vector database stores every document embedding L2-normalized — each stored vector is scaled to length 111 before it is written to disk, so only its direction survives.

Two documents arrive with these raw embeddings:

DocumentRaw embedding
d1d_1d1​(2, −1, 2)(2,\ -1,\ 2)(2, −1, 2)
d2d_2d2​(4, 0, −3)(4,\ 0,\ -3)(4, 0, −3)

The database normalizes each one on the way in, producing stored vectors d1^\hat{d_1}d1​^​ and d2^\hat{d_2}d2​^​. A clustering job then forms a topic vector by summing the two stored vectors:

t=d1^+d2^t = \hat{d_1} + \hat{d_2}t=d1​^​+d2​^​

What is ∥t∥\lVert t \rVert∥t∥?

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.