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

Method init_embeddings

atomic-repository/src/repository/vault_embeddings.rs:32–42  ·  view source on GitHub ↗

Initialize the embeddings table.

(&self)

Source from the content-addressed store, hash-verified

30impl Repository {
31 /// Initialize the embeddings table.
32 pub fn init_embeddings(&self) -> Result<(), RepositoryError> {
33 let mut txn = self
34 .pristine
35 .write_txn()
36 .map_err(|e| RepositoryError::Database(e.to_string()))?;
37 txn.init_embeddings()
38 .map_err(|e| RepositoryError::Database(e.to_string()))?;
39 txn.commit()
40 .map_err(|e| RepositoryError::Database(e.to_string()))?;
41 Ok(())
42 }
43
44 /// Embed a single vault entry using the provided embedding function.
45 ///

Callers 5

test_vault_embed_allFunction · 0.45
init_vaultMethod · 0.45

Calls 2

write_txnMethod · 0.80
commitMethod · 0.80

Tested by 3

test_vault_embed_allFunction · 0.36