suyeong-park commited on
Commit
b8eeb82
·
verified ·
1 Parent(s): 99aac16

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-retrieval
4
+ - sentence-similarity
5
+ language:
6
+ - en
7
+ tags:
8
+ - embeddings
9
+ - vector-database
10
+ - benchmark
11
+ ---
12
+ # GAS ANN Centroids
13
+
14
+ ## Dataset Description
15
+
16
+ This dataset contains pre-computed centroids of each embedding models our GAS (Geometry-Aware Selection) algorithm, designed for performing ANN (Approximate Nearest Neighbor) benchmark.
17
+
18
+ ### Purpose
19
+
20
+ Benchmark centroids dataset for evaluating vector database performance, specifically designed for use with [VectorDBBench](https://github.com/zilliztech/VectorDBBench).
21
+
22
+ ### Dataset Summary
23
+
24
+ - **Supported Embedding Model**
25
+ - [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m)
26
+
27
+ ## Dataset Structure
28
+
29
+ Each embedding model directory has two data:
30
+
31
+ | Data | Description |
32
+ |-------|-------------|
33
+ | `centroids.npy` | centroids as followed IVF |
34
+ | `tree_info.pkl` | tree metadata for GAS centroids |
35
+
36
+ ## Data Fields
37
+
38
+ ## Dataset Creation
39
+
40
+ ### Source Data
41
+
42
+ Source dataset is a large open-domain, Wikipedia dataset: [mixedbread-ai/wikipedia-data-en-2023-11](https://huggingface.co/datasets/mixedbread-ai/wikipedia-data-en-2023-11).
43
+
44
+ ### Preprocessing
45
+
46
+ 1. Create Centroids by GAS approach:
47
+
48
+ Description TBD
49
+
50
+ 3. Normalization: All embeddings are L2-normalized
51
+
52
+ ### Embedding Generation
53
+
54
+ - Model: google/embeddinggemma-300m
55
+ - Dimension: 768
56
+ - Max Token Length: 2048
57
+ - Normalization: L2-normalized
58
+
59
+ ## Usage
60
+
61
+ ```python
62
+ import wget
63
+
64
+ def download_centroids(embedding_model: str, dataset_dir: str) -> None:
65
+ """Download pre-computed centroids and tree info for GAS."""
66
+
67
+ dataset_link = "https://huggingface.co/datasets/cryptolab-playground/gas-centroids/resolve/main/embeddinggemma-300m"
68
+
69
+ wget.download(f"{dataset_link}/centroids.npy", out="centroids.npy")
70
+ wget.download(f"{dataset_link}/tree_info.pkl", out="tree_info.pkl")
71
+ ```
72
+
73
+
74
+ ## License
75
+
76
+ Apache 2.0
77
+
78
+ ## Citation
79
+
80
+ If you use this dataset, please cite:
81
+
82
+ ```bibtex
83
+ @dataset{gas-centroids,
84
+ author = {CryptoLab, Inc.},
85
+ title = {GAS Centroids},
86
+ year = {2025},
87
+ publisher = {Hugging Face},
88
+ url = {https://huggingface.co/datasets/cryptolab-playground/gas-centroids}
89
+ }
90
+ ```
91
+
92
+ ### Source Dataset Citation
93
+
94
+ ```bibtex
95
+ @dataset{wikipedia_data_en_2023_11,
96
+ author = {mixedbread-ai},
97
+ title = {Wikipedia Data EN 2023 11},
98
+ year = {2023},
99
+ publisher = {Hugging Face},
100
+ url = {https://huggingface.co/datasets/mixedbread-ai/wikipedia-data-en-2023-11}
101
+ }
102
+ ```
103
+
104
+ ### Embedding Model Citation
105
+
106
+ ```bibtex
107
+ @misc{embeddinggemma,
108
+ title={Embedding Gemma},
109
+ author={Google},
110
+ year={2024},
111
+ url={https://huggingface.co/google/embeddinggemma-300m}
112
+ }
113
+ ```
114
+
115
+ ### Acknowledgments
116
+
117
+ - Original dataset: mixedbread-ai/wikipedia-data-en-2023-11
118
+ - Embedding model: google/embeddinggemma-300m
119
+ - Benchmark framework: VectorDBBench