pub fn group_chunks_by_path<T>(
items: impl Iterator<Item = (Chunk, T)>,
) -> HashMap<String, Vec<T>>where
T: Clone,Expand description
Group chunks by their file path
This is a common pattern used in indexing and search operations. It takes an iterator of (chunk, value) pairs and groups them by the chunk’s path.
§Arguments
items- Iterator of (chunk, value) pairs to group
§Returns
- HashMap mapping file paths (as strings) to vectors of values