nreimers commited on
Commit
ac1b949
·
1 Parent(s): e6b69ba
Files changed (1) hide show
  1. README.md +11 -3
README.md CHANGED
@@ -27,7 +27,7 @@ You can stream the dataset for example like this:
27
  ```python
28
  from datasets import load_dataset
29
 
30
- dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", split="passages", streaming=True)
31
 
32
  for row in dataset:
33
  print(row)
@@ -58,13 +58,21 @@ The format is the following:
58
  - "qrels": Relevance annotations for the 215 annotated queries by NIST
59
 
60
  ### JSONL
61
- The folder `queries_jsonl/` contains the queries, including the query id, the query text, the embedding,
 
 
 
 
62
  ### Parquet
63
 
 
 
 
 
64
  ```python
65
  from datasets import load_dataset
66
 
67
- dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", split="passages", streaming=True)
68
 
69
  for row in dataset:
70
  print(row)
 
27
  ```python
28
  from datasets import load_dataset
29
 
30
+ dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", "passages", split="train", streaming=True)
31
 
32
  for row in dataset:
33
  print(row)
 
58
  - "qrels": Relevance annotations for the 215 annotated queries by NIST
59
 
60
  ### JSONL
61
+ The folder `queries_jsonl/` contains the queries in a `.jsonl.gz` format.
62
+
63
+ Load this .jsonl.gz format is significantly faster than the parquet file.
64
+
65
+
66
  ### Parquet
67
 
68
+ If you want to use the parquet file or the HF datasets library, the folder `queries_parquet/` contains the respective parquet file.
69
+
70
+ You can load the queries with the following command in HF datasets
71
+
72
  ```python
73
  from datasets import load_dataset
74
 
75
+ dataset = load_dataset("Cohere/msmarco-v2.1-embed-english-v3", "queries", split="test", streaming=True)
76
 
77
  for row in dataset:
78
  print(row)