Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ encode
Method
encode
nodedb-vector/src/vamana/build.rs:336–338 ·
view source on GitHub ↗
(&self, v: &[f32])
Source
from the content-addressed store, hash-verified
334
type Query = Vec<f32>;
335
336
fn encode(&self, v: &[f32]) -> Self::Quantized {
337
L2Q(v.to_vec())
338
}
339
340
fn prepare_query(&self, q: &[f32]) -> Self::Query {
341
q.to_vec()
Callers
2
build_graph_has_connectivity
Function · 0.45
build_respects_degree_bound
Function · 0.45
Calls
2
L2Q
Class · 0.85
to_vec
Method · 0.45
Tested by
2
build_graph_has_connectivity
Function · 0.36
build_respects_degree_bound
Function · 0.36