suyeong-park commited on
Commit
b504de3
·
verified ·
1 Parent(s): 2b9053e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -8
README.md CHANGED
@@ -38,14 +38,33 @@ For each embedding model, the directory contains two key file:
38
 
39
  ## Data Fields
40
 
41
- - Centroids: `centroids.npy`
42
- - This data is for finding the nearest clusters for IVF
43
- - numpy array(`np.ndarray`) with 768-dimensional 32,768 centroids
44
-
45
- - Tree Metadata: `tree_info.pkl`
46
- - This data is for finding the virtual cluster following tree structure
47
- - keys: node_parents, leaf_ids, and leaf_to_centroid_idx
48
- - Detailed parsing information is provided in `es2`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  ## Dataset Creation
51
 
 
38
 
39
  ## Data Fields
40
 
41
+ ### Centroids: `centroids.npy`
42
+
43
+ - **Purpose**: Finding the nearest clusters for IVF (Inverted File Index)
44
+ - **Type**: NumPy array (`np.ndarray`)
45
+ - **Shape**: `[32768, 768]`
46
+ - **Description**: 768-dimensional vectors representing 32,768 cluster centroids
47
+ - **Normalization**: L2-normalized (unit norm)
48
+ - **Format**: float32
49
+
50
+ ### Tree Metadata: `tree_info.pkl`
51
+
52
+ - **Purpose**: Finding virtual clusters following hierarchical tree structure for efficient GAS search
53
+ - **Type**: Python dictionary (pickle)
54
+ - **Keys**:
55
+ - `node_parents`: Dictionary mapping each node ID to its parent node ID
56
+ - Format: `{node_id: parent_node_id, ...}`
57
+ - Contains parent-child relationships for all nodes in the tree
58
+
59
+ - `leaf_ids`: List of leaf node IDs
60
+ - Format: `[leaf_id_1, leaf_id_2, ..., leaf_id_32768]`
61
+ - Total 32,768 leaf nodes (corresponding to 32,768 centroids)
62
+
63
+ - `leaf_to_centroid_idx`: Mapping from leaf node IDs to centroid indices in `centroids.npy`
64
+ - Format: `{leaf_node_id: centroid_index, ...}`
65
+ - Maps each leaf node to its corresponding row index in `centroids.npy`
66
+ - Important: Leaf IDs in `leaf_ids` are ordered sequentially, so the i-th leaf corresponds to the i-th centroid
67
+
68
 
69
  ## Dataset Creation
70