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

Function decode_embedding_key

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

Source from the content-addressed store, hash-verified

800/// Decode an embedding key into (path, chunk_idx).
801#[inline]
802pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> {
803 let (path, idx_str) = key.split_once('\0')?;
804 let idx = idx_str.parse().ok()?;
805 Some((path, idx))
806}
807
808// V3 Change Storage Key Encoding
809

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