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

Function make_doc

nodedb-vector/src/multivec/storage.rs:120–125  ·  view source on GitHub ↗
(doc_id: u32, n_vecs: usize, dim: usize)

Source from the content-addressed store, hash-verified

118 use super::*;
119
120 fn make_doc(doc_id: u32, n_vecs: usize, dim: usize) -> MultiVectorDoc {
121 MultiVectorDoc {
122 doc_id,
123 vectors: (0..n_vecs).map(|_| vec![0.0f32; dim]).collect(),
124 }
125 }
126
127 #[test]
128 fn insert_per_token_valid() {

Callers 5

insert_per_token_validFunction · 0.85
insert_meta_token_validFunction · 0.85
get_returns_inserted_docFunction · 0.85
iter_yields_all_docsFunction · 0.85

Calls 1

collectMethod · 0.80

Tested by 5

insert_per_token_validFunction · 0.68
insert_meta_token_validFunction · 0.68
get_returns_inserted_docFunction · 0.68
iter_yields_all_docsFunction · 0.68