(key: &str)
| 1024 | /// Decode an embedding key into (path, chunk_idx). |
| 1025 | #[inline] |
| 1026 | pub fn decode_embedding_key(key: &str) -> Option<(&str, u32)> { |
| 1027 | let (path, idx_str) = key.split_once('\0')?; |
| 1028 | let idx = idx_str.parse().ok()?; |
| 1029 | Some((path, idx)) |
| 1030 | } |
| 1031 | |
| 1032 | // V3 Change Storage Key Encoding |
| 1033 |