Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
doc_id
stringlengths
25
43
embedding
sequencelengths
1.02k
1.02k
text
stringlengths
4
46k
url
stringlengths
14
987
msmarco_v2.1_doc_00_0#0_0
[ 0.7910647988319397, -0.10723687708377838, 0.1896359622478485, -0.46668288111686707, 0.6971065998077393, 0.39663761854171753, -0.1461281180381775, -0.8408859372138977, -0.6664870977401733, 1.118159294128418, -0.42333176732063293, 0.1778441071510315, 0.5729585289955139, -0.07675277441740036,...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews 0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews 0-60 Times There are many ways to measure the power a vehicle has – top speed, horsepower, foot-pounds of torque. Those are all important, but the most asked question i...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_0#1_1557
[ 1.301033616065979, -0.31170204281806946, 0.06580821424722672, -0.5549818873405457, 0.8515701293945312, 0.03886812925338745, -0.3786548376083374, -0.9661787152290344, -0.8096742630004883, 1.1380847692489624, -0.9659371972084045, -0.17425419390201569, 0.310820609331131, -0.2438656985759735, ...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews But anyone who spends any amount of time with car enthusiasts are sure to hear the ubiquitous term bantered around more often than most other metrics by which cars are measured in terms of power. The only other measure that comes close as far a...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_0#2_3101
[ 1.4897565841674805, -0.3372438848018646, -0.5596031546592712, -0.8418185710906982, 1.399522304534912, 0.09360819309949875, -0.23436568677425385, -0.8450847268104553, -1.1366102695465088, 1.2225455045700073, -0.8989222645759583, -0.4953702688217163, -0.13969790935516357, -0.1939484626054763...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews But both measure the performance of a car. A lot goes into increasing 0-60 times in performance vehicles. As a normal rule of thumb, performance cars are considered those with 0-60 time of under 6 seconds, while Exotic cars will do 0-60 in 3 to...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_0#3_4486
[ 1.0571056604385376, 0.5477198362350464, -0.19239957630634308, -0.9818912148475647, 1.5688074827194214, 0.417520135641098, 0.7981476187705994, -0.7708318829536438, -1.3665357828140259, 1.582693338394165, -0.49074414372444153, -0.6392403841018677, 0.03773830458521843, -0.06555840373039246, ...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews But, even the back yard mechanic or muscle car enthusiast can determine the 0-60 times of their cars and make moves to improve them. The testing of acceleration is usually done on a closed course away from people other than the team that may be...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_0#4_5974
[ 1.0922908782958984, 0.008392692543566227, -0.47006335854530334, -0.7347052693367004, 1.8716377019882202, 0.16291941702365875, 0.4538002908229828, -0.6314859986305237, -0.9545435905456543, 0.9100435972213745, -0.823451817035675, -0.36332762241363525, 0.08437234908342361, 1.0435974597930908,...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews For engineers testing a new exotic sports car, though, a simple estimate is not accurate enough. They want hard and fast 0-60 times, and they use much more highly-technical equipment to get their numbers. With the 0-60 figure being so important...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_0#5_7440
[ 1.1740314960479736, -0.019926022738218307, -0.0800037831068039, -0.42967554926872253, 1.648858904838562, 0.062399908900260925, -0.4963458478450775, -0.7756544947624207, -1.0136128664016724, 1.4619990587234497, -0.8206513524055481, -0.4248656928539276, 0.47234445810317993, 0.680854499340057...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews The average of these two times will be the recorded 0-60 time for the car. Doppler radar guns are used to ensure the tester is recording exact 0 -60 times. This leaves the driver to focus solely on running through the gears as precisely as poss...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_0#6_9130
[ 1.4969950914382935, -0.14757342636585236, -0.1755492240190506, -0.22294366359710693, 1.3951431512832642, 0.2786750793457031, -0.5341716408729553, -0.7201065421104431, -0.9804651737213135, 0.9160836935043335, -0.7117286324501038, 0.05866503342986107, 0.3883865177631378, -0.01543694362044334...
0-60 Times - 0-60 | 0 to 60 Times & 1/4 Mile Times | Zero to 60 Car Reviews Instead, some believe the measure should include a range of times rather than one finite mark to which all cars of any particular model should be held. For instance, they believe a BMW M3 should have a listed time of 3.9 – 4.2 seconds and a Cor...
http://0-60.reviews/0-60-times/
msmarco_v2.1_doc_00_4810#0_10354
[ -0.20348191261291504, -0.9566107392311096, 0.27368223667144775, 0.6935915350914001, -0.19246076047420502, -0.46359649300575256, -1.2340201139450073, -0.6915848851203918, -0.46694430708885193, 0.17519694566726685, 1.3067378997802734, -0.25729212164878845, 0.2837514877319336, 0.3401549160480...
Ethel Percy Andrus Gerontology Center [WorldCat Identities] Ethel Percy Andrus Gerontology Center [WorldCat Identities] Ethel Percy Andrus Gerontology Center Overview Works: 233 works in 338 publications in 1 language and 6,766 library holdings Genres: Bibliography Conference papers and proceedings Bibliographie...
http://0-www.worldcat.org.novacat.nova.edu/identities/lccn-n79036869/
msmarco_v2.1_doc_00_4810#1_13812
[ 0.45675650238990784, -1.0949269533157349, 0.5876612663269043, 0.05836769565939903, 0.041247326880693436, -0.32683056592941284, -0.5372728109359741, -1.2903697490692139, 0.22628344595432281, 0.23564943671226501, 1.5990175008773804, 0.6242418885231018, 0.125498965382576, 0.532378613948822, ...
Ethel Percy Andrus Gerontology Center [WorldCat Identities] progress report( Book ) Handbook by Ethel Percy Andrus Gerontology Center ( Book ) Evaluation of an information and referral program : caller profiles and resource materials by Christine Anne Wolfe ( ) The Work of the Andrus Gerontology Center : what we d...
http://0-www.worldcat.org.novacat.nova.edu/identities/lccn-n79036869/
msmarco_v2.1_doc_00_4810#2_16701
[-0.04644441604614258,-1.255466341972351,0.8387309312820435,0.5075470209121704,0.2723706066608429,-0(...TRUNCATED)
"Ethel Percy Andrus Gerontology Center [WorldCat Identities] submitted to U.S. Department of Health(...TRUNCATED)
http://0-www.worldcat.org.novacat.nova.edu/identities/lccn-n79036869/
End of preview. Expand in Data Studio

Snowflake Arctic Embed L Embeddings for MSMARCO V2.1 for TREC-RAG

This dataset contains the embeddings for the MSMARCO-V2.1 dataset which is used as the corpora for TREC RAG All embeddings are created using Snowflake's Arctic Embed L and are intended to serve as a simple baseline for dense retrieval-based methods.

Retrieval Performance

Retrieval performance for the TREC DL21-23, MSMARCOV2-Dev and Raggy Queries can be found below with BM25 as a baseline. For both systems retrieval is at the segment level and Doc Score = Max (passage score). Retrieval is done via dot product and happens in BF16.

NDCG@10

Dataset BM25 Snowflake Arctic Embed L
Deep Learning 2021 0.5778 0.70682
Deep Learning 2022 0.3576 0.5444
Deep Learning 2023 0.3356 0.47372
msmarcov2-dev N/A 0.35844
msmarcov2-dev2 N/A 0.35821
Raggy Queries 0.4227 0.57759

Recall@100

Dataset BM25 Snowflake Arctic Embed L
Deep Learning 2021 0.3811 0.41361
Deep Learning 2022 0.233 0.31351
Deep Learning 2023 0.3049 0.34793
msmarcov2-dev 0.6683 0.85131
msmarcov2-dev2 0.6771 0.84767
Raggy Queries 0.2807 0.36228

Recall@1000

Dataset BM25 Snowflake Arctic Embed L
Deep Learning 2021 0.7115 0.7193
Deep Learning 2022 0.479 0.54566
Deep Learning 2023 0.5852 0.59577
msmarcov2-dev 0.8528 0.93966
msmarcov2-dev2 0.8577 0.93947
Raggy Queries 0.5745 0.63092

Loading the dataset

Loading the document embeddings

You can either load the dataset like this:

from datasets import load_dataset
docs = load_dataset("Snowflake/msmarco-v2.1-snowflake-arctic-embed-l", split="train")

Or you can also stream it without downloading it before:

from datasets import load_dataset
docs = load_dataset("Snowflake/msmarco-v2.1-snowflake-arctic-embed-l",  split="train", streaming=True)
for doc in docs:
    doc_id = j['docid']
    url = doc['url']
    text = doc['text']
    emb = doc['embedding']

Note, The full dataset corpus is ~ 620GB so it will take a while to download and may not fit on some devices/

Search

A full search example (on the first 1,000 paragraphs):

from datasets import load_dataset
import torch
from transformers import AutoModel, AutoTokenizer
import numpy as np


top_k = 100
docs_stream = load_dataset("Snowflake/msmarco-v2.1-snowflake-arctic-embed-l",split="train", streaming=True)

docs = []
doc_embeddings = []

for doc in docs_stream:
    docs.append(doc)
    doc_embeddings.append(doc['embedding'])
    if len(docs) >= top_k:
        break

doc_embeddings = np.asarray(doc_embeddings)

tokenizer = AutoTokenizer.from_pretrained('Snowflake/snowflake-arctic-embed-l')
model = AutoModel.from_pretrained('Snowflake/snowflake-arctic-embed-l', add_pooling_layer=False)
model.eval()

query_prefix = 'Represent this sentence for searching relevant passages: '
queries  = ['how do you clean smoke off walls']
queries_with_prefix = ["{}{}".format(query_prefix, i) for i in queries]
query_tokens = tokenizer(queries_with_prefix, padding=True, truncation=True, return_tensors='pt', max_length=512)

# Compute token embeddings
with torch.no_grad():
    query_embeddings = model(**query_tokens)[0][:, 0]


# normalize embeddings
query_embeddings = torch.nn.functional.normalize(query_embeddings, p=2, dim=1)
doc_embeddings = torch.nn.functional.normalize(doc_embeddings, p=2, dim=1)

# Compute dot score between query embedding and document embeddings
dot_scores = np.matmul(query_embeddings, doc_embeddings.transpose())[0]
top_k_hits = np.argpartition(dot_scores, -top_k)[-top_k:].tolist()

# Sort top_k_hits by dot score
top_k_hits.sort(key=lambda x: dot_scores[x], reverse=True)

# Print results
print("Query:", queries[0])
for doc_id in top_k_hits:
    print(docs[doc_id]['doc_id'])
    print(docs[doc_id]['text'])
    print(docs[doc_id]['url'], "\n")
Downloads last month
442