8 int64 8 11.1k | 0 int64 0 0 | 566392 int64 178 600k | 1 int64 1 1 |
|---|---|---|---|
8 | 0 | 65,404 | 1 |
15 | 0 | 325,273 | 1 |
18 | 0 | 88,124 | 1 |
26 | 0 | 285,255 | 1 |
26 | 0 | 350,819 | 1 |
34 | 0 | 599,545 | 1 |
42 | 0 | 272,709 | 1 |
42 | 0 | 327,263 | 1 |
42 | 0 | 331,981 | 1 |
56 | 0 | 572,690 | 1 |
68 | 0 | 19,183 | 1 |
89 | 0 | 413,229 | 1 |
89 | 0 | 590,102 | 1 |
89 | 0 | 268,026 | 1 |
89 | 0 | 248,624 | 1 |
89 | 0 | 508,754 | 1 |
89 | 0 | 64,556 | 1 |
90 | 0 | 31,793 | 1 |
94 | 0 | 245,447 | 1 |
98 | 0 | 575,929 | 1 |
98 | 0 | 527,522 | 1 |
104 | 0 | 575,869 | 1 |
104 | 0 | 523,158 | 1 |
106 | 0 | 76,695 | 1 |
109 | 0 | 73,427 | 1 |
475 | 0 | 366,761 | 1 |
503 | 0 | 367,641 | 1 |
504 | 0 | 500,755 | 1 |
504 | 0 | 344,203 | 1 |
504 | 0 | 498,751 | 1 |
515 | 0 | 372,909 | 1 |
529 | 0 | 510,701 | 1 |
547 | 0 | 6,349 | 1 |
547 | 0 | 278,629 | 1 |
549 | 0 | 214,024 | 1 |
559 | 0 | 246,459 | 1 |
570 | 0 | 363,591 | 1 |
585 | 0 | 140,226 | 1 |
585 | 0 | 552,375 | 1 |
588 | 0 | 570,546 | 1 |
588 | 0 | 203,710 | 1 |
594 | 0 | 377,322 | 1 |
594 | 0 | 534,059 | 1 |
603 | 0 | 456,440 | 1 |
604 | 0 | 451,443 | 1 |
604 | 0 | 231,947 | 1 |
604 | 0 | 261,622 | 1 |
620 | 0 | 331,332 | 1 |
620 | 0 | 417,301 | 1 |
620 | 0 | 189,303 | 1 |
620 | 0 | 180,673 | 1 |
620 | 0 | 487,067 | 1 |
622 | 0 | 179,756 | 1 |
622 | 0 | 369,239 | 1 |
659 | 0 | 13,139 | 1 |
659 | 0 | 230,908 | 1 |
659 | 0 | 584,685 | 1 |
659 | 0 | 439,467 | 1 |
659 | 0 | 264,297 | 1 |
659 | 0 | 235,925 | 1 |
659 | 0 | 168,796 | 1 |
659 | 0 | 120,279 | 1 |
659 | 0 | 365,240 | 1 |
659 | 0 | 449,079 | 1 |
672 | 0 | 40,966 | 1 |
672 | 0 | 563,025 | 1 |
684 | 0 | 441,120 | 1 |
687 | 0 | 146,021 | 1 |
687 | 0 | 268,992 | 1 |
689 | 0 | 411,044 | 1 |
691 | 0 | 395,912 | 1 |
699 | 0 | 107,092 | 1 |
701 | 0 | 288,537 | 1 |
701 | 0 | 339,488 | 1 |
701 | 0 | 389,446 | 1 |
715 | 0 | 579,763 | 1 |
715 | 0 | 546,538 | 1 |
715 | 0 | 187,404 | 1 |
721 | 0 | 496,225 | 1 |
744 | 0 | 490,443 | 1 |
744 | 0 | 566,480 | 1 |
744 | 0 | 78,176 | 1 |
750 | 0 | 419,768 | 1 |
750 | 0 | 33,602 | 1 |
753 | 0 | 466,718 | 1 |
753 | 0 | 243,503 | 1 |
766 | 0 | 2,996 | 1 |
766 | 0 | 387,218 | 1 |
766 | 0 | 550,172 | 1 |
776 | 0 | 467,044 | 1 |
776 | 0 | 583,640 | 1 |
776 | 0 | 597,247 | 1 |
776 | 0 | 124,027 | 1 |
776 | 0 | 592,680 | 1 |
776 | 0 | 10,440 | 1 |
776 | 0 | 127,263 | 1 |
776 | 0 | 332,373 | 1 |
776 | 0 | 220,127 | 1 |
776 | 0 | 597,880 | 1 |
776 | 0 | 496,899 | 1 |
fiqa_answerai_colbert_small
Multi-vector (late-interaction) embeddings of BEIR fiqa (beir/fiqa/test), encoded with
lightonai/answerai-colbert-small-v1 at revision e507cd12947a2b4b52201d150967df3c19a90590.
Source data: ir_datasets beir/fiqa/test (ir_datasets 0.6.3), which downloads fiqa.zip (md5 17918ed23cd04fb15047f73e6c3bd9d9). BEIR also publishes this corpus on the Hub as BeIR/fiqa, 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) |
[7,314,136, 96] |
every document vector, concatenated document by document (1,339.3 MiB) |
doclens.npy |
int32 | [57,638] |
vectors per document; cumsum gives offsets |
token_ids.npy |
uint32 | [7,314,136] |
tokenizer id of each documents.npy row, 1:1 |
doc_ids.npy |
<U6 |
[57,638] |
original document ids |
queries.npy |
float32 (<f4) |
[648, 32, 96] |
query vectors, zero-padded at the end (7.6 MiB) |
query_lens.npy |
int32 | [648] |
true vectors per query, before padding |
queries_ids.npy |
<U5 |
[648] |
original query ids |
qrels.test.tsv |
text | 1,706 rows | TREC qrels, qid \t 0 \t docid \t relevance, no header |
gt_top100.tsv |
text | 64,800 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 | 57,638 |
| document vectors | 7,314,136 |
| vectors per document (min / median / mean / max) | 3 / 103 / 126.9 / 298 |
| queries | 648 |
| vectors per query (min / median / max) | 32 / 32 / 32 |
| queries with at least one qrel | 648 |
| qrels rows | 1,706 |
| 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 298 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 intoqueries_ids.npy/queries.npydocidx: 0-based position intodoc_ids.npy/doclens.npyrank: 1-based, descending scorescore: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.4132 | 0.6932 | 0.5003 | 0.3490 |
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 (7314136, 96)
- β doclens.npy dtype/shape β <i4 (57638,)
- β doc_ids.npy is a string array β <U6 (57638,)
- β queries.npy dtype/shape β <f4 (648, 32, 96)
- β query_lens.npy dtype/shape β <i4 (648,)
- β queries_ids.npy is a string array β <U5 (648,)
- β sum(doclens) == n_tokens β 7314136 vs 7314136
- β no empty documents β min doclen 3
- β len(doc_ids) == len(doclens) == corpus size β 57638, 57638, 57638
- β doc_ids unique
- β query arrays aligned β 648, 648, 648
- β doc and query dim agree β 96 / 96
- β token_ids.npy dtype/shape β <u4 (7314136,)
- β 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 β 64800 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
- 23