Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
amitness
· 1y ago · 0 comments
Try this trick that I learned from Cohere: - Fetch top 10*k (i.e. 100) results using the hamming distance - Rerank by taking dot product between query embedding (full precision) and binary doc embeddings - Show top-10 results after re-ranking
Comments
[–]
Quizzical4230
1y ago
This is pretty cool. The dot product would give the unnormalized cosine similarity from a smaller pool. Thank you so much!