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

Method count_embeddings

atomic-core/src/pristine/txn/read.rs:1650–1659  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1648 }
1649
1650 fn count_embeddings(&self) -> PristineResult<usize> {
1651 let table = match self.txn.open_table(EMBEDDINGS) {
1652 Ok(table) => table,
1653 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(0),
1654 Err(e) => return Err(PristineError::from(e)),
1655 };
1656
1657 let count = table.len()? as usize;
1658 Ok(count)
1659 }
1660
1661 fn search_embeddings(
1662 &self,

Callers 1

vault_embedding_countMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected