Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
query_id: int64
required_label: int64
range_low: double
range_high: double
label: int64
range_value: double
id: int64
to
{'id': Value('int64'), 'label': Value('int64'), 'range_value': Value('float64')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1779, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              query_id: int64
              required_label: int64
              range_low: double
              range_high: double
              label: int64
              range_value: double
              id: int64
              to
              {'id': Value('int64'), 'label': Value('int64'), 'range_value': Value('float64')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1348, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1832, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
int64
label
int64
range_value
float64
0
6
0.375007
1
3
0.753257
2
7
0.790821
3
7
0.671349
4
2
0.654791
5
3
0.311729
6
6
0.506457
7
5
0.547758
8
5
0.668046
9
4
0.701781
10
7
0.398856
11
7
0.712096
12
6
0.601841
13
8
0.664163
14
6
0.233608
15
4
0.566727
16
6
0.422924
17
4
0.776609
18
7
0.664448
19
5
0.700508
20
5
0.550224
21
4
0.512136
22
8
0.420989
23
5
0.46543
24
5
0.558499
25
5
0.584126
26
7
0.219876
27
6
0.615172
28
6
0.379883
29
6
0.635152
30
10
0.640067
31
5
0.286027
32
4
0.360278
33
4
0.463259
34
7
0.472602
35
8
0.575734
36
5
0.437071
37
4
0.765429
38
4
0.437924
39
7
0.195694
40
7
0.505344
41
7
0.429804
42
4
0.647169
43
6
0.850018
44
6
0.193761
45
6
0.498842
46
7
0.631452
47
6
0.49189
48
7
0.464314
49
6
0.582723
50
6
0.455112
51
7
0.395351
52
3
0.524122
53
5
0.40768
54
5
0.536536
55
4
0.386599
56
5
0.404784
57
8
0.491193
58
4
0.317831
59
7
0.351165
60
2
0.396119
61
5
0.6602
62
6
0.315549
63
7
0.521135
64
7
0.392862
65
7
0.36163
66
5
0.230501
67
5
0.649966
68
7
0.487395
69
5
0.659521
70
3
0.467456
71
3
0.265339
72
4
0.56707
73
6
0.325261
74
6
0.189391
75
7
0.375525
76
5
0.398187
77
6
0.554653
78
7
0.427959
79
5
0.485057
80
6
0.56586
81
4
0.248697
82
5
0.346629
83
5
0.361814
84
3
0.277555
85
6
0.742588
86
5
0.626521
87
6
0.684781
88
6
0.442096
89
6
0.384411
90
7
0.216499
91
5
0.663515
92
5
0.409149
93
5
0.624949
94
2
0.591333
95
3
0.552295
96
3
0.464977
97
4
0.613498
98
6
0.395756
99
4
0.388249
End of preview.

SIFT1M Dataset to Evaluate (Filtered) Approximate Nearest Neighbor Search — Normal Variant

This dataset is intended to benchmark Approximate Nearest Neighbor Search (ANNS) and Filtered Approximate Nearest Neighbor Search (FANNS) algorithms. It is based on the classic SIFT1M dataset (1,000,000 base vectors and 10,000 query vectors, each 128-dimensional). Because SIFT1M ships without any structured metadata, we augment it with synthetic attributes drawn from a normal (Gaussian) distribution: every base vector receives one categorical label and one continuous range_value. Query attributes for three different filter types are sampled from the same normal distribution as the base attributes. The ground truth for the up to k=100 nearest neighbors was computed for unfiltered ANNS and for filtered ANNS with the three different filter types. Please note that if fewer than 100 database items match the filter, then the ground truth can contain fewer than k=100 entries. This variant is the Gaussian counterpart of sift1m-fanns-uniform: the design is identical and only the sampling distribution changes, so that the two can be compared directly to study the effect of attribute distribution (homogeneous vs. heterogeneous selectivity).

Filter Types

Filter Predicate Description
label label == required_label Exact match on the categorical attribute.
range range_low <= range_value <= range_high Containment in a fixed-width interval.
both label AND range Conjunction of the two predicates above.

Parameters

Parameter Value Meaning
N 1,000,000 Number of base (database) vectors
nq 10,000 Number of query vectors
vec_dim 128 Embedding dimension (from SIFT1M)
NUM_LABELS 12 label ~ round(Normal(5.5, 2.0)) clipped to [0, 11]
LABEL_MEAN / LABEL_STD 5.5 / 2.0 Mean and std of the label histogram
range_value Normal(0.5, 0.15) clipped to [0, 1] Continuous base attribute
RANGE_MEAN / RANGE_STD 0.5 / 0.15 Mean and std of range_value and of query window centers
RANGE_WIDTH 0.2 Width of every query range window (range_high - range_low)
GT_K 100 Max number of ground-truth neighbors per query
RANDOM_SEED 42 Fixed seed; the dataset is bit-reproducible

Expected Selectivity

Under the normal distribution, the average selectivity is higher than in the uniform variant, but more importantly the per-query selectivity has high variance (heterogeneous): common labels and central range windows are far less selective than rare labels and edge windows. A single benchmark therefore spans a wide range of difficulties, which is closer to real-world skewed attributes.

Filter Avg. selectivity (approx.) Per-query spread Note
label ~14% ~0.6% (label 0/11) → ~19% (label 5/6) Σ pₓ² exceeds the uniform 8.33%
range ~30–40% ~8% (edge window) → ~50% (central window) Windows concentrate near the dense center
both ~5% <0.5% (rare label + edge window) → ~10% Highest variance; a few queries may yield < 100 GT entries

Files and Description

File Description
database_vectors.fvecs 128-dimensional base vectors. One vector per database item.
database_attributes.jsonl JSON objects with {id, label, range_value} for each item. One JSON object per database item.
query_vectors.fvecs 128-dimensional query vectors. One vector per query.
ground_truth.ivecs Ground truth for unfiltered nearest neighbor search. One vector per query.
label_query_attributes.jsonl Query attributes for label (exact match) filtering. One JSON object per query.
ground_truth_label.ivecs Ground truth for label-filtered NN search. One vector per query.
range_query_attributes.jsonl Query attributes for range filtering. One JSON object per query.
ground_truth_range.ivecs Ground truth for range-filtered NN search. One vector per query.
label_and_range_query_attributes.jsonl Query attributes for the joint (label AND range) filter. One JSON object per query.
ground_truth_label_and_range.ivecs Ground truth for joint-filtered NN search. One vector per query.

Formats

  • .fvecs: Binary format for 32-bit floating point numbers (used for embedding vectors).
  • .ivecs: Binary format for 32-bit signed integers (used for ground truth).
  • .jsonl: Each line contains a JSON object (used for attributes).
Downloads last month
9