32How do you search for an exact word in a vector database?▼mediumGleanCohere1 replies◆ premiumA deceptively short interview question that's really a trap: embeddings cannot do exact match, and the interviewer knows it. What to actually turn on (payload full-text indexes, sparse vectors, metadata filters) in the vector DBs you already run.Open full answer →
71Compute the dot product of two sparse vectors.▼mediumMetaGoogle1 replies◆ premiumThe whole question is the representation: store only the nonzeros as index→value, then either two-pointer over sorted indices or hash-join. The follow-up that decides the design is what happens when one vector is dense.Open full answer →