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

Method count_embeddings

atomic-core/src/pristine/txn/write/embeddings.rs:104–113  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

102 }
103
104 fn count_embeddings(&self) -> PristineResult<usize> {
105 let table = match self.txn.open_table(EMBEDDINGS) {
106 Ok(table) => table,
107 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(0),
108 Err(e) => return Err(PristineError::from(e)),
109 };
110
111 let count = table.len()? as usize;
112 Ok(count)
113 }
114
115 fn search_embeddings(
116 &self,

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected