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

Method prepare_query

nodedb-vector/src/rerank/sidecar.rs:129–131  ·  view source on GitHub ↗
(&self, query: &[f32])

Source from the content-addressed store, hash-verified

127 }
128
129 pub fn prepare_query(&self, query: &[f32]) -> Result<PreparedQuery, RerankError> {
130 self.codec.prepare_query(query)
131 }
132
133 /// Compute distance from a prepared query to the encoded vector at `id`.
134 /// Returns `Ok(None)` when the id isn't in the sidecar (lost / not yet

Callers 4

searchMethod · 0.45
remove_returns_noneFunction · 0.45

Calls 1

to_vecMethod · 0.45

Tested by 3

remove_returns_noneFunction · 0.36