Skip to content
nonconvexcard

A sufficient condition for correct retrieval

ProofIntermediate⏱ 30 minRAGretrievalthresholdcorpus sizedimension

Problem

Derive the sufficient condition α>2log⁡(N/δ)/d\alpha>\sqrt{2\log(N/\delta)/d} for top-1 retrieval, and determine the embedding dimension needed to retrieve correctly from N=109N = 10^9 documents at α=0.2\alpha = 0.2 with 95%95\% confidence. Comment on the honesty of this estimate.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Three similarities agree on the unit sphereRAGProofFoundation15 min
Johnson–Lindenstrauss dimension arithmeticHigh-Dim ProbabilityNumericalBeginner15 min
Simulate distance contrast runClassical MLCodingBeginner30 min
Measure anisotropy in an embedding space runRAGCodingIntermediate1 hour
The density of the cosine between random directionsRAGProofAdvanced1 hour