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

Function encode_embedding_key

atomic-core/src/pristine/tables.rs:752–754  ·  view source on GitHub ↗
(path: &str, chunk_idx: u32)

Source from the content-addressed store, hash-verified

750/// Encode an embedding key as "path\0chunk_idx".
751#[inline]
752pub fn encode_embedding_key(path: &str, chunk_idx: u32) -> String {
753 format!("{}\0{}", path, chunk_idx)
754}
755
756/// Decode an embedding key into (path, chunk_idx).
757#[inline]

Callers 5

get_embeddingMethod · 0.85
get_embeddingMethod · 0.85
put_embeddingMethod · 0.85

Calls

no outgoing calls

Tested by 2