MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / make_record

Function make_record

atomic-core/src/pristine/txn/write/embeddings.rs:242–250  ·  view source on GitHub ↗
(dims: usize, chunk: u32)

Source from the content-addressed store, hash-verified

240 use tempfile::tempdir;
241
242 fn make_record(dims: usize, chunk: u32) -> EmbeddingRecord {
243 EmbeddingRecord {
244 vector: vec![0.1; dims],
245 content_hash: [0u8; 32],
246 introduced_by: 1,
247 chunk_idx: chunk,
248 preview: format!("chunk {}", chunk),
249 }
250 }
251
252 #[test]
253 fn test_embedding_crud() {

Calls

no outgoing calls