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

Method prepare_query

nodedb-vector/src/quantize/sq8_codec.rs:70–72  ·  view source on GitHub ↗

Prepare the FP32 query for asymmetric distance computations. For SQ8 the query is used directly without rotation or normalization.

(&self, q: &[f32])

Source from the content-addressed store, hash-verified

68 ///
69 /// For SQ8 the query is used directly without rotation or normalization.
70 fn prepare_query(&self, q: &[f32]) -> Self::Query {
71 q.to_vec()
72 }
73
74 /// SQ8 has no precomputed ADC table — returns `None`.
75 fn adc_lut(&self, _q: &Self::Query) -> Option<AdcLut> {

Calls 1

to_vecMethod · 0.45