(key: &str)
| 775 | /// Decode an embedding key into (path, chunk_idx). |
| 776 | #[inline] |
| 777 | pub 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 |