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

Function encode_embedding_key

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

Source from the content-addressed store, hash-verified

741/// Encode an embedding key as "path\0chunk_idx".
742#[inline]
743pub fn encode_embedding_key(path: &str, chunk_idx: u32) -> String {
744 format!("{}\0{}", path, chunk_idx)
745}
746
747/// Decode an embedding key into (path, chunk_idx).
748#[inline]

Callers 5

get_embeddingMethod · 0.85
get_embeddingMethod · 0.85
put_embeddingMethod · 0.85

Calls

no outgoing calls

Tested by 2