Dataset Viewer
Auto-converted to Parquet Duplicate
PLAIN-2
string
0
int64
MED-2427
string
2
int64
PLAIN-2
0
MED-10
2
PLAIN-2
0
MED-2429
2
PLAIN-2
0
MED-2430
2
PLAIN-2
0
MED-2431
2
PLAIN-2
0
MED-14
2
PLAIN-2
0
MED-2432
2
PLAIN-2
0
MED-2428
1
PLAIN-2
0
MED-2440
1
PLAIN-2
0
MED-2434
1
PLAIN-2
0
MED-2435
1
PLAIN-2
0
MED-2436
1
PLAIN-2
0
MED-2437
1
PLAIN-2
0
MED-2438
1
PLAIN-2
0
MED-2439
1
PLAIN-2
0
MED-3597
1
PLAIN-2
0
MED-3598
1
PLAIN-2
0
MED-3599
1
PLAIN-2
0
MED-4556
1
PLAIN-2
0
MED-4559
1
PLAIN-2
0
MED-4560
1
PLAIN-2
0
MED-4828
1
PLAIN-2
0
MED-4829
1
PLAIN-2
0
MED-4830
1
PLAIN-12
0
MED-2513
2
PLAIN-12
0
MED-5237
2
PLAIN-12
0
MED-2517
2
PLAIN-12
0
MED-2518
2
PLAIN-12
0
MED-2519
2
PLAIN-12
0
MED-2520
2
PLAIN-12
0
MED-2521
2
PLAIN-12
0
MED-2514
1
PLAIN-12
0
MED-2943
1
PLAIN-12
0
MED-5322
1
PLAIN-12
0
MED-5323
1
PLAIN-12
0
MED-5324
1
PLAIN-12
0
MED-5325
1
PLAIN-12
0
MED-5326
1
PLAIN-12
0
MED-5327
1
PLAIN-12
0
MED-5328
1
PLAIN-12
0
MED-5329
1
PLAIN-12
0
MED-5330
1
PLAIN-12
0
MED-5331
1
PLAIN-12
0
MED-5332
1
PLAIN-12
0
MED-5333
1
PLAIN-12
0
MED-5334
1
PLAIN-12
0
MED-5335
1
PLAIN-12
0
MED-5363
1
PLAIN-12
0
MED-5337
1
PLAIN-12
0
MED-5338
1
PLAIN-12
0
MED-5339
1
PLAIN-12
0
MED-5340
1
PLAIN-12
0
MED-5341
1
PLAIN-12
0
MED-5342
1
PLAIN-23
0
MED-2644
2
PLAIN-23
0
MED-2646
2
PLAIN-23
0
MED-2651
2
PLAIN-23
0
MED-118
2
PLAIN-23
0
MED-2652
2
PLAIN-23
0
MED-2653
2
PLAIN-23
0
MED-2655
2
PLAIN-23
0
MED-2659
2
PLAIN-23
0
MED-2661
2
PLAIN-23
0
MED-2662
2
PLAIN-23
0
MED-4551
1
PLAIN-23
0
MED-2643
1
PLAIN-23
0
MED-2645
1
PLAIN-23
0
MED-2647
1
PLAIN-23
0
MED-2648
1
PLAIN-23
0
MED-2627
1
PLAIN-23
0
MED-2649
1
PLAIN-23
0
MED-2650
1
PLAIN-23
0
MED-2654
1
PLAIN-23
0
MED-2656
1
PLAIN-23
0
MED-2657
1
PLAIN-23
0
MED-2658
1
PLAIN-23
0
MED-2660
1
PLAIN-23
0
MED-3021
1
PLAIN-23
0
MED-3023
1
PLAIN-23
0
MED-2904
1
PLAIN-23
0
MED-2905
1
PLAIN-23
0
MED-2906
1
PLAIN-23
0
MED-2907
1
PLAIN-23
0
MED-3024
1
PLAIN-23
0
MED-3025
1
PLAIN-23
0
MED-2910
1
PLAIN-23
0
MED-3027
1
PLAIN-23
0
MED-3028
1
PLAIN-23
0
MED-2913
1
PLAIN-23
0
MED-3012
1
PLAIN-23
0
MED-3013
1
PLAIN-23
0
MED-3030
1
PLAIN-23
0
MED-2917
1
PLAIN-23
0
MED-3033
1
PLAIN-23
0
MED-3034
1
PLAIN-23
0
MED-3035
1
PLAIN-23
0
MED-2921
1
PLAIN-23
0
MED-3585
1
PLAIN-23
0
MED-3586
1
PLAIN-23
0
MED-3587
1
PLAIN-23
0
MED-3588
1
End of preview. Expand in Data Studio

nfcorpus_answerai_colbert_small

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

Source data: ir_datasets beir/nfcorpus/test (ir_datasets 0.6.3), which downloads nfcorpus.zip (md5 a89dba18a62ef92f7d323ec890a0d38d). BEIR also publishes this corpus on the Hub as BeIR/nfcorpus, 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) [855,519, 96] every document vector, concatenated document by document (156.7 MiB)
doclens.npy int32 [3,633] vectors per document; cumsum gives offsets
token_ids.npy uint32 [855,519] tokenizer id of each documents.npy row, 1:1
doc_ids.npy <U8 [3,633] original document ids
queries.npy float32 (<f4) [323, 32, 96] query vectors, zero-padded at the end (3.8 MiB)
query_lens.npy int32 [323] true vectors per query, before padding
queries_ids.npy <U10 [323] original query ids
qrels.test.tsv text 12,334 rows TREC qrels, qid \t 0 \t docid \t relevance, no header
gt_top1000.tsv text 323,000 rows exact MaxSim top-1000, see below
gt_top100.tsv text 32,300 rows first 100 ranks of gt_top1000.tsv, same format

All positional indices (the gt_top*.tsv files, and the row order of every .npy file) refer to the order of doc_ids.npy and queries_ids.npy. Reordering either file invalidates the ground truth.

Statistics

documents 3,633
document vectors 855,519
vectors per document (min / median / mean / max) 27 / 249 / 235.5 / 287
queries 323
vectors per query (min / median / mean / max) 32 / 32 / 32.0 / 32
queries with at least one qrel 323
qrels rows 12,334
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), applied before the skiplist. 2,473 of 3,633 documents (68%) were longer and were cut to it; longest here 287 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_top1000.tsv and gt_top100.tsv

Exact brute-force MaxSim top-1000 per query over the full corpus, from the vectors in this repo. gt_top100.tsv holds the first 100 ranks per query of the same lists (the original layout of these exports).

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.

Retrieval quality

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

nDCG@10 MRR@10 Success@5 Recall@100 Recall@1000 MAP@1000
0.3683 0.5874 0.6780 0.3140 0.6283 0.1931

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 (855519, 96)
  • βœ… doclens.npy dtype/shape β€” <i4 (3633,)
  • βœ… doc_ids.npy is a string array β€” <U8 (3633,)
  • βœ… queries.npy dtype/shape β€” <f4 (323, 32, 96)
  • βœ… query_lens.npy dtype/shape β€” <i4 (323,)
  • βœ… queries_ids.npy is a string array β€” <U10 (323,)
  • βœ… sum(doclens) == n_tokens β€” 855519 vs 855519
  • βœ… no empty documents β€” min doclen 27
  • βœ… len(doc_ids) == len(doclens) == corpus size β€” 3633, 3633, 3633
  • βœ… doc_ids unique
  • βœ… query arrays aligned β€” 323, 323, 323
  • βœ… doc and query dim agree β€” 96 / 96
  • βœ… token_ids.npy dtype/shape β€” <u4 (855519,)
  • βœ… document vectors unit-norm (100k sample) β€” norm range [0.9994, 1.0005]
  • βœ… query vectors unit-norm β€” norm range [1.000000, 1.000000]
  • βœ… all vectors finite
  • βœ… gt_top100.tsv has k rows per query β€” 32300 rows, k=100
  • βœ… gt_top100.tsv rows grouped by qidx with ranks 1..k and descending scores
  • βœ… gt_top100.tsv indices in range
  • βœ… gt_top1000.tsv has k rows per query β€” 323000 rows, k=1000
  • βœ… gt_top1000.tsv rows grouped by qidx with ranks 1..k and descending scores
  • βœ… gt_top1000.tsv indices in range
  • βœ… gt_top100.tsv is the first 100 ranks of gt_top1000.tsv

Provenance

exported 2026-09-25
hardware Tesla V100S-PCIE-32GB
revised 2026-09-29: ground truth extended to top-1000 (gt_top1000.tsv, exact MaxSim over this repo's vectors on Tesla V100S-PCIE-32GB); gt_top100.tsv rewritten as its first 100 ranks: 385 rows differ from the previous file, all of them documents with identical scores listed in a different order (3 tied pairs at rank 100 swapped in or out)
Downloads last month
61