Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ make_sv
Function
make_sv
nodedb/src/engine/vector/sparse/index.rs:220–222 ·
view source on GitHub ↗
(entries: &[(u32, f32)])
Source
from the content-addressed store, hash-verified
218
use super::*;
219
220
fn make_sv(entries: &[(u32, f32)]) -> SparseVector {
221
SparseVector::from_entries(entries.to_vec()).unwrap()
222
}
223
224
#[test]
225
fn insert_and_lookup() {
Callers
5
insert_and_lookup
Function · 0.70
upsert_replaces
Function · 0.70
delete
Function · 0.70
checkpoint_roundtrip
Function · 0.70
multiple_docs_same_dim
Function · 0.70
Calls
1
to_vec
Method · 0.45
Tested by
5
insert_and_lookup
Function · 0.56
upsert_replaces
Function · 0.56
delete
Function · 0.56
checkpoint_roundtrip
Function · 0.56
multiple_docs_same_dim
Function · 0.56