Hi, I’m using a serverless index with Euclidean metric. My query for the top-k nearest neighbors ends up with a set of non-relevant results that have zero scores. However, when I calculate the Euclidean distance between the retrieved top-k results and the desired (ground truth) vector, the resulting distance is non-zero.
For example, when using the Pinecone browser UI:
- Query vector:
[1.41801252, 1.49050865, 1.43392544, 1.41001154, 1.46095573, -1.56100074, 1.55368016, -1.45887257, 1.48442237, -1.51891499, 1.44955129, -1.47484451, 1.47434548, -1.17802122, -1.45483033, -1.44923621, 1.44340986, 1.4354714 , -1.52566174, -0.08610929, 1.50625149, -1.44945199, -1.47598479, -1.45943354, 1.4124473 , -1.42225283, 1.55932978, -1.50499493, -1.37530518, -1.55677061, 1.44308749, 1.46448536, 1.50935831, -1.51975426, 1.47271499, 1.46357659, -1.4605816 , -1.49754076, -1.51815601, 1.41090604, -1.51226262, 1.52881709, 1.5098639 , 1.49394787, 1.46545535, -1.45910733, -1.56257889, -1.4517175 , 1.45362315, -1.37330958, 1.56644878, -1.48792829, 1.53159378, -1.37382623, -1.5080489 , -1.56653744, 1.46046917, -1.47363525, 1.44095557, 1.46443458, 1.48764053, -1.41272872, -1.40517313, 1.49368751, -1.52733856, -1.55229917, 1.48655474, 1.45256972, 1.53727338, -1.41643129, 1.57542494, -1.484358 , 1.49534123, 1.28084229, 1.46565884, -1.55700347, -1.49448289, -1.49505205, -1.37736553, -1.46264122, 1.45481185, 1.43892306, -1.31209227, 1.40568543, -1.39279401, 1.35657313, 1.49787717, -1.50292186, 1.48365681, -1.51098335, -1.51388869, 1.53351966, -1.36956442, -1.45323573, -1.51428591, 1.61629189, 1.31030302, -1.43672574, -1.34981574, 1.49480503, -1.56560373, 1.47173587, 1.58414108, 1.54329361, -1.52293959, 1.43830565, -1.52598607, -1.45663455, -1.53807115, 1.55431993, 1.47503068, 1.44199594, -1.46731623, -1.44500071, 1.4792523 , 1.43485514, 1.39558568, -1.42931936, 1.46818616, 1.41544391, -1.45364482, 1.50668353, 1.48503746, 1.0766196 , -1.48692953, 1.47806293, 1.54464546, 1.4919022 , 1.48077248, 1.42747482, -1.43439692, 1.48740701, 1.49637468, 1.43362383, -1.48274626, 1.49512127, -1.39432946, 1.45401828, -1.53630361, 1.48947136, -1.46061756, 1.54266327, -1.48463433, 1.56054003, -1.54347118, 1.50536695, -1.37965198, -1.35375356, 1.43531656, 1.54270027, -1.45164789, -1.50531701, 1.47610179, -1.50092068, 1.42501302, 1.41945437, 1.43747091, -1.45165012, -1.46193844, -1.50548319, -1.4854255 , 1.49106556, 1.40134679, 1.54556868, 1.49922561, 1.51189617, 1.3218027 , -1.410573 , 1.50151984, -1.44230322, -1.44988246, 1.52709244, -1.45584787, -1.53904892, -1.4527216 , 1.36444043, -1.46352486, 1.50012681, 1.52856557, -1.51376977, -1.42299825, 1.49614175, 1.31185487, -1.58174934, 1.46940764, 1.50015771, 1.50496693, -1.43956631, 1.57348994, -1.49316218, -1.55467873, -1.30787179, -1.47152174, -1.3498417 , -1.4866341 , 1.42120379, 1.33201173, -1.53899947, -1.44497432, -1.46428155, 1.42910242, 1.47604262, -1.45401188, 1.57485436, -1.51922108, -1.51259908, 1.25989977, -1.45351887, 1.47544894, 1.47093168, 1.50926732, 1.43379771, -1.43208562, 1.45374774, -1.10140194, -1.34560713, -1.50470878, 0.97910202, 1.53047022, -1.24690398, -1.49181499, 1.42106516, 1.47328124, -1.50791656, 1.50654401, 1.51414249, 1.5068066 , -1.48749975, -1.49809178, -1.47393066, 1.47934008, -1.46493872, 1.47359961, -1.55371271, 1.49902852, 1.34899779, 1.45121061, -1.41958759, 1.40885342, -1.51463744, -1.44378067, -1.40469719, -1.47709553, -1.56533499, -1.51438436, -1.51896814, -1.44163379, 1.40395573, -1.44223302, -1.46670871, -1.42890029, -1.3996792 , 1.46028122, 1.53890602, 1.34328468, -1.43283155, -1.49162222, 1.52201177, 1.49385347, 1.40239362, -1.52309358, -1.46274127, 1.48280609, -1.44952605, 1.55100114, -1.50091267, 1.51719302, 1.1282679 , 1.49312428, 1.48624208, 1.47263492, -1.45266787, -1.56951885, 1.49572722, 1.48951041, 1.53395168, 1.48210996, -1.42686855, -1.38971402, 1.42913728, -1.44532088, -1.41333297, -1.46787503, -1.41735278, -1.37751714, -1.17869417, -1.53132459, 1.48500704, -1.5091751 , -1.58023853, -1.31345216, 1.44999759, 1.38421608, -1.44336936, -1.61322437, -1.4626488 , -1.10923331, 1.41052028, -1.495202 , -1.4645707 , -1.42878232, 1.50084586, 1.47581182, 1.5250596 , 1.44312382, 1.49182274, -1.47935401, 1.42287258, -1.35737948, 1.35987704, -1.23176127, -1.50861464, 1.57409726, 1.47816389, -1.41470341, 1.57730011, -1.60786791, 1.42680974, -1.48794059, -1.55004379, 1.07928833, 1.37703096, -1.52541541, 1.59364356, -1.38053989, -1.43639793, 1.53284518, 1.5107385 , 1.46486778, 1.44747124, -1.51047804, -1.49023254, 1.51764272, -1.45751422, -1.45840299, 1.40680305, -1.49480633, 1.40254966, -1.45661531, -1.3011494 , -1.52676942, 1.52223158, 1.47402845, 1.54562114, 1.51891612, -1.37874635, -1.47854314, 1.26380078, -1.41576559, 1.53889644, 1.42252311, 1.59670967, 1.56810339, -1.31718046, 1.48788641, -1.6188153 , -1.42998558, -1.56821321, 1.43683925, -1.55927797, -1.44853655, 1.53050045, -1.50706971, -1.39176874, 1.41042035, 1.21987111, 1.49379792, 1.43549888, 1.49604443, -1.49467011, -1.52309105, -1.51370959, -1.43714654, 1.50149856, 1.42100354, -1.40529171, -1.45355545, -1.45845937, 1.47659594, 1.49085944, 1.45390653, -1.50566513, -1.4676777 , 1.45946246, 1.39472745, 1.50631095, 1.43100026, 1.47520953, -1.48411989, 1.52496886, -1.36524199, -1.53876792, -1.53930949, -1.46198979, -1.48532458, -1.52778323, 1.54948938, 1.51979541, 1.44333226, 1.4530974 , -1.51799221, -1.43782386, 1.51547705, 1.3657194 , -1.47660093, -1.47220824, 1.52256768, -1.39271629, -1.49738614, -1.55871784, -1.34564255, -1.43486116, -1.4395299 , 1.44627511, 1.48343789, -1.53043011, 1.46355926, 1.47794015, 1.28730087, -1.54400025, -1.35906635, 1.43207721, 1.48704744, 1.39364203, -1.44113807, -1.4626094 , -1.51518859, 1.51435666, 1.46783446, -1.51991365, -1.49122728, -1.45494036, -1.47512645, -1.50289918, 1.50071951, -1.44334552, -1.51649991, -1.46942998, 1.40539415, 1.47040158, -1.42196992, -1.41160828, 1.55095698, -1.47704186, -1.51179154, 1.33587188, -1.44090007, -1.45124775, 1.49704144, -1.42871963, -1.52050558, -1.50697417, -1.51779012, 1.40238629, -1.4573313 , -1.62357994, -1.53000662, 1.41143688, -1.49936388, -1.52108771, 1.42902067, 1.47934158, -1.36505257, 1.52842636, 1.19646629, 1.39570871, 1.51000328, 1.4620449 , -1.55404836, -1.47683967, -1.46685127, 1.29265784, 1.52441436, -1.22520734, 1.51053901, -1.54455022, 1.52647848, -1.51499737, -1.50195479, 1.29308636, 1.41123876, -1.4883557 , -1.47138391, 1.46248901, -1.49577118, -1.5360717 , 1.53324027, 1.40096871, -1.4992121 , 1.63983359, 1.44453171, 1.55185508, 1.44461435, 1.41087686, 1.50857483, 1.44111195, -1.50627493, -1.46993057, -1.37754019, 1.52615162, -1.45136416, -1.41390712, 1.46842924, -1.537966 , -1.52096692, 1.55466521, -1.44459455, -1.52659647, -1.47554098, 1.38910556, 0.85143782, 1.45485878]
- Top-1 match:
[1.44259751, 1.45442951, 1.43149936, 1.41504693, 1.48065639, -1.51303947, 1.57091093, -1.46189725, 1.52946055, -1.47623634, 1.44616425, -1.52629745, 1.46182358, -1.18511808, -1.47290921, -1.44276178, 1.51113617, 1.45620668, -1.52049792, -0.00524162175, 1.47841299, -1.45506155, -1.54616702, -1.39808452, 1.42590559, -1.49206722, 1.56922472, -1.51137042, -1.37233579, -1.56266689, 1.47551525, 1.47343254, 1.56033516, -1.47633386, 1.45833421, 1.44089663, -1.47565782, -1.48453271, -1.55261827, 1.48455369, -1.50047791, 1.50215328, 1.48021078, 1.49267256, 1.45014679, -1.46500301, -1.54681754, -1.50587142, 1.4748776, -1.40581799, 1.5431205, -1.54652452, 1.54216659, -1.41203749, -1.52782249, -1.55085969, 1.43044901, -1.5375427, 1.46704364, 1.48716879, 1.51700079, -1.40284669, -1.46215177, 1.52354944, -1.54275143, -1.51364911, 1.48083496, 1.50170708, 1.55644286, -1.41427112, 1.52753532, -1.47752762, 1.5077548, 1.30078292, 1.49131489, -1.52818847, -1.48214793, -1.47147965, -1.43632257, -1.51100826, 1.4555006, 1.46830213, -1.33614361, 1.43571508, -1.42404354, 1.42404282, 1.5016818, -1.51915228, 1.55134368, -1.47867894, -1.51966643, 1.59322178, -1.39360595, -1.47822917, -1.52121055, 1.57039762, 1.30192888, -1.46445739, -1.39226735, 1.51436698, -1.51423979, 1.52358627, 1.53785753, 1.47907138, -1.55030775, 1.49340212, -1.54711604, -1.42506659, -1.51965964, 1.52531314, 1.47717011, 1.51324499, -1.5187192, -1.44547188, 1.52655971, 1.44834423, 1.48764169, -1.4109354, 1.46866512, 1.41962683, -1.46743643, 1.42628741, 1.53990471, 1.08738577, -1.4809221, 1.5185436, 1.57838356, 1.53689384, 1.50154066, 1.39060104, -1.45233083, 1.50170422, 1.50810468, 1.42356551, -1.49896193, 1.53861785, -1.38726461, 1.43990159, -1.53025, 1.51383805, -1.44046712, 1.52292454, -1.42638195, 1.55115962, -1.52402198, 1.56940544, -1.40373647, -1.30889881, 1.38390505, 1.58817279, -1.46862745, -1.50536907, 1.45923471, -1.52474153, 1.42914236, 1.47008753, 1.51300848, -1.49383318, -1.51709604, -1.49615479, -1.50070715, 1.48951697, 1.48405576, 1.55960453, 1.45778, 1.49339843, 1.39187551, -1.46846974, 1.47732353, -1.44463372, -1.49055815, 1.50239921, -1.45599604, -1.52385664, -1.439991, 1.44356787, -1.43545842, 1.48353529, 1.45842385, -1.53738618, -1.39481401, 1.39645588, 1.34403419, -1.49329901, 1.46095204, 1.49214458, 1.46857107, -1.52122283, 1.58412647, -1.55442834, -1.55639553, -1.29205787, -1.35258198, -1.34571934, -1.44971991, 1.42481673, 1.35116279, -1.50601399, -1.4216038, -1.50253415, 1.44397473, 1.40844762, -1.47509837, 1.54946327, -1.51999724, -1.52394, 1.24488652, -1.49068356, 1.47831535, 1.45252454, 1.53699267, 1.3970511, -1.44821274, 1.52127206, -1.20168614, -1.42116141, -1.56894696, 0.959219217, 1.46847987, -1.27159989, -1.46554661, 1.50275445, 1.5377363, -1.53548706, 1.50705194, 1.54673314, 1.49509835, -1.42166138, -1.44292724, -1.54009008, 1.52360654, -1.47409296, 1.4748137, -1.55067539, 1.56585705, 1.29183006, 1.53853583, -1.43401611, 1.36131322, -1.42638314, -1.468624, -1.43394935, -1.44881761, -1.5052886, -1.52092659, -1.5387516, -1.48193586, 1.37132776, -1.44250274, -1.45825791, -1.46020401, -1.42623305, 1.48840249, 1.5033263, 1.34177923, -1.4368968, -1.48682356, 1.51107621, 1.52267647, 1.37609518, -1.50604284, -1.48040199, 1.45869207, -1.42906082, 1.57060921, -1.47232032, 1.49693453, 1.11165726, 1.45540047, 1.47665215, 1.54354668, -1.50276852, -1.53348124, 1.48927009, 1.45976162, 1.51185942, 1.52874625, -1.43699419, -1.38927841, 1.43697774, -1.38380396, -1.42303371, -1.46923387, -1.3872695, -1.39257717, -1.20457971, -1.50556302, 1.47322738, -1.49589217, -1.58136523, -1.24863565, 1.44148219, 1.36074233, -1.45603061, -1.57206059, -1.45154202, -1.1416595, 1.46599329, -1.49783278, -1.52869666, -1.44579852, 1.49006104, 1.48575091, 1.52163386, 1.42858279, 1.48359227, -1.4769516, 1.46307468, -1.36765611, 1.39714193, -1.24174881, -1.4647032, 1.48827326, 1.48848069, -1.4376986, 1.54360032, -1.59475803, 1.4739641, -1.54868114, -1.53270829, 1.05557919, 1.45410717, -1.49262798, 1.57040346, -1.42494297, -1.44212031, 1.52904391, 1.58456492, 1.45939529, 1.44999337, -1.50697517, -1.47079265, 1.56666684, -1.45881093, -1.47274876, 1.33829749, -1.51303709, 1.43012881, -1.51680362, -1.31779253, -1.49260461, 1.54864335, 1.52662563, 1.51399696, 1.55616975, -1.45626712, -1.48497546, 1.25557673, -1.38822424, 1.50981188, 1.46551049, 1.57407284, 1.53740335, -1.34027719, 1.49800777, -1.55651891, -1.43531692, -1.5031848, 1.45437634, -1.56315255, -1.43678725, 1.47625804, -1.53039443, -1.38905191, 1.45973444, 1.21314144, 1.47868872, 1.45095348, 1.4958657, -1.46672463, -1.5273571, -1.48813713, -1.46078432, 1.50475037, 1.4267627, -1.43144929, -1.46582174, -1.44829142, 1.48250961, 1.54212236, 1.44829607, -1.46122777, -1.50914288, 1.45967543, 1.47929478, 1.54683352, 1.44833314, 1.47543406, -1.52561057, 1.47819817, -1.41755521, -1.52957726, -1.50618541, -1.4515413, -1.44141638, -1.57487226, 1.5108918, 1.49332321, 1.44121, 1.44005215, -1.43756747, -1.47316182, 1.51128531, 1.42023981, -1.49146438, -1.43051124, 1.49762082, -1.38760638, -1.48798597, -1.54864264, -1.46101034, -1.42634487, -1.47496712, 1.42300808, 1.51479113, -1.56462848, 1.41943192, 1.53953934, 1.32200968, -1.56566942, -1.43181419, 1.47846174, 1.4874109, 1.3891629, -1.39390552, -1.48824072, -1.49057877, 1.51448107, 1.48416209, -1.49408638, -1.46333921, -1.51864851, -1.52986193, -1.49833226, 1.56384933, -1.40651894, -1.54944944, -1.44335127, 1.43576252, 1.50053024, -1.39305818, -1.37411714, 1.52632034, -1.51615191, -1.50248456, 1.38406372, -1.43548048, -1.53685939, 1.45018315, -1.4518944, -1.5191952, -1.57494879, -1.59995484, 1.42530751, -1.49031115, -1.58429599, -1.59197056, 1.4308207, -1.56372023, -1.54071367, 1.45207012, 1.54533875, -1.34055173, 1.48903847, 1.2417717, 1.42645645, 1.49090469, 1.49979448, -1.55803335, -1.53095913, -1.42492497, 1.28309298, 1.46583641, -1.20343196, 1.49857795, -1.5241102, 1.5439353, -1.50809371, -1.49591923, 1.31384921, 1.37415481, -1.52922881, -1.55921066, 1.48221338, -1.50330508, -1.50816929, 1.51671433, 1.39026368, -1.50067902, 1.63483739, 1.43758512, 1.51977122, 1.51976454, 1.47550035, 1.48460889, 1.50805044, -1.56158817, -1.51080167, -1.40624738, 1.53994501, -1.43479705, -1.43389142, 1.46960664, -1.53174543, -1.52861774, 1.54577422, -1.43576062, -1.5268631, -1.47252476, 1.39626586, 0.796419919, 1.44015753]
Although the top-k search returns a result with a zero distance, the actual Euclidean distance between the query and the retrieved vector is non-zero. This is confusing. Can you help me understand what I might be missing?
Thank you! Ron