Update README.md
Browse files
README.md
CHANGED
|
@@ -38,14 +38,33 @@ For each embedding model, the directory contains two key file:
|
|
| 38 |
|
| 39 |
## Data Fields
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|