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

Function decode_embedding_key

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

Source from the content-addressed store, hash-verified

747/// Decode an embedding key into (path, chunk_idx).
748#[inline]
749pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> {
750 let (path, idx_str) = key.split_once('\0')?;
751 let idx = idx_str.parse().ok()?;
752 Some((path, idx))
753}
754
755// V3 Change Storage Key Encoding
756

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