Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
1
int64
3
1.4k
0
int64
0
0
31715818
int64
33.4k
196M
1.1
int64
1
1
3
0
14,717,500
1
5
0
13,734,012
1
13
0
1,606,628
1
36
0
5,152,028
1
36
0
11,705,328
1
42
0
18,174,210
1
48
0
13,734,012
1
49
0
5,953,485
1
50
0
12,580,014
1
51
0
45,638,119
1
53
0
45,638,119
1
54
0
49,556,906
1
56
0
4,709,641
1
57
0
4,709,641
1
70
0
5,956,380
1
70
0
4,414,547
1
72
0
6,076,903
1
75
0
4,387,784
1
94
0
1,215,116
1
99
0
18,810,195
1
100
0
4,381,486
1
113
0
6,157,837
1
115
0
33,872,649
1
118
0
6,372,244
1
124
0
4,883,040
1
127
0
21,598,000
1
128
0
8,290,953
1
129
0
27,768,226
1
130
0
27,768,226
1
132
0
7,975,937
1
133
0
38,485,364
1
133
0
6,969,753
1
133
0
17,934,082
1
133
0
16,280,642
1
133
0
12,640,810
1
137
0
26,016,929
1
141
0
6,955,746
1
141
0
14,437,255
1
142
0
10,582,939
1
143
0
10,582,939
1
146
0
10,582,939
1
148
0
1,084,345
1
163
0
18,872,233
1
171
0
12,670,680
1
179
0
16,322,674
1
179
0
27,123,743
1
179
0
23,557,241
1
179
0
17,450,673
1
180
0
16,966,326
1
183
0
12,827,098
1
185
0
18,340,282
1
198
0
2,177,022
1
208
0
13,519,661
1
212
0
22,038,539
1
213
0
13,625,993
1
216
0
21,366,394
1
217
0
21,366,394
1
218
0
21,366,394
1
219
0
21,366,394
1
230
0
3,067,015
1
232
0
10,536,636
1
233
0
4,388,470
1
236
0
4,388,470
1
237
0
4,942,718
1
238
0
2,251,426
1
239
0
14,079,881
1
248
0
1,568,684
1
249
0
1,568,684
1
261
0
1,122,279
1
261
0
10,697,096
1
268
0
970,012
1
269
0
970,012
1
274
0
11,614,737
1
275
0
4,961,038
1
275
0
14,241,418
1
275
0
14,819,804
1
279
0
14,376,683
1
294
0
10,874,408
1
295
0
20,310,709
1
298
0
39,381,118
1
300
0
3,553,087
1
303
0
4,388,470
1
312
0
6,173,523
1
314
0
4,347,374
1
324
0
2,014,909
1
327
0
17,997,584
1
338
0
23,349,986
1
343
0
7,873,737
1
343
0
5,884,524
1
350
0
16,927,286
1
354
0
8,774,475
1
362
0
38,587,347
1
380
0
19,005,293
1
384
0
13,770,184
1
385
0
9,955,779
1
385
0
9,767,444
1
386
0
16,495,649
1
388
0
1,148,122
1
399
0
791,050
1
410
0
14,924,526
1
End of preview. Expand in Data Studio

scifact_answerai_colbert_small

Multi-vector (late-interaction) embeddings of BEIR scifact (beir/scifact/test), encoded with lightonai/answerai-colbert-small-v1 at revision e507cd12947a2b4b52201d150967df3c19a90590.

Source data: ir_datasets beir/scifact/test (ir_datasets 0.6.3), which downloads scifact.zip (md5 5f7d1de60b170fc8027bb7898e2efca1). BEIR also publishes this corpus on the Hub as BeIR/scifact, whose card gives this dataset's license; the data here was loaded through ir_datasets, not from that repo. Document, query and qrel ids are the source's own ids, unchanged.

Every document is one variable-length set of 96-d vectors; every query is one variable-length set of 96-d vectors. Documents and queries are stored at different precisions (fp16 and fp32 respectively), see Encoding.

Files

file dtype shape contents
documents.npy float16 (<f2) [1,221,388, 96] every document vector, concatenated document by document (223.6 MiB)
doclens.npy int32 [5,183] vectors per document; cumsum gives offsets
token_ids.npy uint32 [1,221,388] tokenizer id of each documents.npy row, 1:1
doc_ids.npy <U9 [5,183] original document ids
queries.npy float32 (<f4) [300, 32, 96] query vectors, zero-padded at the end (3.5 MiB)
query_lens.npy int32 [300] true vectors per query, before padding
queries_ids.npy <U4 [300] original query ids
qrels.test.tsv text 339 rows TREC qrels, qid \t 0 \t docid \t relevance, no header
gt_top100.tsv text 30,000 rows exact MaxSim top-100, see below

All positional indices (gt_top100.tsv, and the row order of every .npy file) refer to the order of doc_ids.npy and queries_ids.npy. Reordering either file invalidates gt_top100.tsv.

Statistics

documents 5,183
document vectors 1,221,388
vectors per document (min / median / mean / max) 50 / 252 / 235.7 / 290
queries 300
vectors per query (min / median / max) 32 / 32 / 32
queries with at least one qrel 300
qrels rows 339
embedding dimension 96

Encoding

model lightonai/answerai-colbert-small-v1
model revision e507cd12947a2b4b52201d150967df3c19a90590
library sentence-transformers 6.1.0 MultiVectorEncoder (transformers 5.17.0, torch 2.13.0+cu126)
document compute dtype float16 (model weights loaded at this dtype for the document pass)
document storage dtype fp16
query compute dtype float32 (model weights loaded at this dtype for the query pass)
query storage dtype fp32
normalization L2, by the model's own Normalize module, before the storage cast
document truncation 300 tokens (the checkpoint's document_length), before the skiplist; longest document here 290 vectors
query truncation query_length unset; fixed query expansion: every query is padded to 32 tokens with the tokenizer's mask token, which are not attended to, and those expansion vectors are kept
document skiplist 32 words removed: ['!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\', ']', '^', '_', '`', '{', '
document input title + "\n\n" + text when the corpus has a title, else text; stripped
query input query text, stripped of surrounding whitespace, formatted by the model's own query prompt/template
query vectors every vector the model emits for the query is kept, including any query-expansion tokens its template adds; query_lens counts them all
document padding none: documents.npy holds real vectors only, sum(doclens) == n_tokens
query padding rows at or beyond query_lens[i] in queries.npy[i] are exactly zero
token_ids tokenizer id of each kept document token (after the skiplist above), aligned 1:1 with documents.npy

Ground truth: gt_top100.tsv

Exact brute-force MaxSim top-100 per query over the full corpus, from the vectors in this repo. No header; tab-separated qidx docidx rank score:

  • qidx: 0-based row into queries_ids.npy / queries.npy
  • docidx: 0-based position into doc_ids.npy / doclens.npy
  • rank: 1-based, descending score
  • score: sum over the query's query_lens[qidx] vectors of max over the document's vectors of the dot product, computed in fp32 with the fp16 document vectors upcast to fp32. Expansion vectors are included in the sum. Printed to 6 decimals.

No query id appears as a document id, so there are no self-matches.

Retrieval quality

Sanity check of the vectors, not a leaderboard number: exact MaxSim over the full corpus scored against qrels.test.tsv with ir_measures.

nDCG@10 Recall@100 MRR@10 MAP
0.7431 0.9527 0.7162 0.7121

Loading

import numpy as np

documents = np.load("documents.npy", mmap_mode="r")      # [n_tokens, 96] float16
doclens = np.load("doclens.npy")                         # [n_docs] int32
offsets = np.concatenate([[0], np.cumsum(doclens)])
doc_ids = np.load("doc_ids.npy")                         # [n_docs] str

def document(i):
    return documents[offsets[i]:offsets[i + 1]]           # [doclens[i], 96]

queries = np.load("queries.npy")                         # [n_queries, 32, 96] float32
query_lens = np.load("query_lens.npy")                   # [n_queries] int32
query_ids = np.load("queries_ids.npy")                   # [n_queries] str

def query(j):
    return queries[j, :query_lens[j]]                     # [query_lens[j], 96]

def maxsim(q, d):
    return (q @ d.astype(np.float32).T).max(axis=1).sum()

Validation

Checks run by the exporter on the files exactly as written here:

  • βœ… file set β€” missing=[] extra=[]
  • βœ… documents.npy dtype/shape β€” <f2 (1221388, 96)
  • βœ… doclens.npy dtype/shape β€” <i4 (5183,)
  • βœ… doc_ids.npy is a string array β€” <U9 (5183,)
  • βœ… queries.npy dtype/shape β€” <f4 (300, 32, 96)
  • βœ… query_lens.npy dtype/shape β€” <i4 (300,)
  • βœ… queries_ids.npy is a string array β€” <U4 (300,)
  • βœ… sum(doclens) == n_tokens β€” 1221388 vs 1221388
  • βœ… no empty documents β€” min doclen 50
  • βœ… len(doc_ids) == len(doclens) == corpus size β€” 5183, 5183, 5183
  • βœ… doc_ids unique
  • βœ… query arrays aligned β€” 300, 300, 300
  • βœ… doc and query dim agree β€” 96 / 96
  • βœ… token_ids.npy dtype/shape β€” <u4 (1221388,)
  • βœ… document vectors unit-norm (100k sample) β€” norm range [0.9994, 1.0006]
  • βœ… query vectors unit-norm β€” norm range [1.000000, 1.000000]
  • βœ… all vectors finite
  • βœ… gt_top100.tsv has k rows per query β€” 30000 rows, k=100
  • βœ… gt rows grouped by qidx with ranks 1..k and descending scores
  • βœ… gt indices in range

Provenance

exported 2026-09-25
hardware Tesla V100S-PCIE-32GB
Downloads last month
27