Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ encode
Method
encode
nodedb-codec/src/vector_quant/rabitq.rs:309–311 ·
view source on GitHub ↗
(&self, v: &[f32])
Source
from the content-addressed store, hash-verified
307
type Query = RaBitQQuery;
308
309
fn encode(&self, v: &[f32]) -> Self::Quantized {
310
RaBitQQuantized(self.encode_inner(v))
311
}
312
313
fn prepare_query(&self, q: &[f32]) -> Self::Query {
314
let dim = self.dim;
Callers
3
encode_roundtrip_preserves_residual_norm
Function · 0.45
distance_non_negative_finite
Function · 0.45
calibrate_identical_vectors_zero_residual
Function · 0.45
Calls
2
RaBitQQuantized
Class · 0.85
encode_inner
Method · 0.45
Tested by
3
encode_roundtrip_preserves_residual_norm
Function · 0.36
distance_non_negative_finite
Function · 0.36
calibrate_identical_vectors_zero_residual
Function · 0.36