MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / exact_asymmetric_distance

Method exact_asymmetric_distance

nodedb-vector/src/quantize/sq8_codec.rs:105–107  ·  view source on GitHub ↗
(&self, q: &Self::Query, v: &Self::Quantized)

Source from the content-addressed store, hash-verified

103 /// or negates at encode time.
104 #[inline]
105 fn exact_asymmetric_distance(&self, q: &Self::Query, v: &Self::Quantized) -> f32 {
106 self.asymmetric_l2(q, packed_bits_of(v))
107 }
108}
109
110// ── Tests ────────────────────────────────────────────────────────────────────

Calls 2

asymmetric_l2Method · 0.80
packed_bits_ofFunction · 0.70