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

Function decode_embedding_key

atomic-core/src/pristine/tables.rs:777–781  ·  view source on GitHub ↗
(key: &str)

Source from the content-addressed store, hash-verified

775/// Decode an embedding key into (path, chunk_idx).
776#[inline]
777pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> {
778 let (path, idx_str) = key.split_once('\0')?;
779 let idx = idx_str.parse().ok()?;
780 Some((path, idx))
781}
782
783// V3 Change Storage Key Encoding
784

Callers 6

list_embeddingsMethod · 0.85
search_embeddingsMethod · 0.85
list_embeddingsMethod · 0.85
search_embeddingsMethod · 0.85

Calls 1

parseMethod · 0.45

Tested by 2