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

Function det_vec

nodedb-vector/src/rerank/sidecar.rs:284–288  ·  view source on GitHub ↗
(i: usize, dim: usize)

Source from the content-addressed store, hash-verified

282 // ── Sidecar serialization tests ────────────────────────────────────────────
283
284 fn det_vec(i: usize, dim: usize) -> Vec<f32> {
285 (0..dim)
286 .map(|j| ((i * 31 + j) % 100) as f32 / 100.0)
287 .collect()
288 }
289
290 #[test]
291 fn sidecar_roundtrip_sq8() {

Callers 6

sidecar_roundtrip_sq8Function · 0.70
sidecar_roundtrip_binaryFunction · 0.70
sidecar_roundtrip_pqFunction · 0.70
sidecar_roundtrip_rabitqFunction · 0.70
sidecar_roundtrip_bbqFunction · 0.70

Calls 1

collectMethod · 0.80

Tested by 6

sidecar_roundtrip_sq8Function · 0.56
sidecar_roundtrip_binaryFunction · 0.56
sidecar_roundtrip_pqFunction · 0.56
sidecar_roundtrip_rabitqFunction · 0.56
sidecar_roundtrip_bbqFunction · 0.56