macavaney commited on
Commit
ec376e2
·
verified ·
1 Parent(s): d3e135e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -4
README.md CHANGED
@@ -14,7 +14,7 @@ viewer: false
14
 
15
  ## Description
16
 
17
- *TODO: What is the artifact?*
18
 
19
  ## Usage
20
 
@@ -22,17 +22,34 @@ viewer: false
22
  # Load the artifact
23
  import pyterrier_alpha as pta
24
  artifact = pta.Artifact.from_hf('pyterrier/hotpotqa.retromae.flex')
25
- # TODO: Show how you use the artifact
26
  ```
27
 
28
  ## Benchmarks
29
 
30
- *TODO: Provide benchmarks for the artifact.*
 
 
 
 
 
 
 
 
 
 
31
 
32
  ## Reproduction
33
 
34
  ```python
35
- # TODO: Show how you constructed the artifact.
 
 
 
 
 
 
 
36
  ```
37
 
38
  ## Metadata
 
14
 
15
  ## Description
16
 
17
+ RetroMAE index for Hotpot QA
18
 
19
  ## Usage
20
 
 
22
  # Load the artifact
23
  import pyterrier_alpha as pta
24
  artifact = pta.Artifact.from_hf('pyterrier/hotpotqa.retromae.flex')
25
+ artifact.np_retriever()
26
  ```
27
 
28
  ## Benchmarks
29
 
30
+ `hotpotqa/dev`
31
+
32
+ | name | nDCG@10 | R@1000 |
33
+ |:----------|----------:|---------:|
34
+ | np (flat) | 0.6019 | 0.8156 |
35
+
36
+ `hotpotqa/test`
37
+
38
+ | name | nDCG@10 | R@1000 |
39
+ |:----------|----------:|---------:|
40
+ | np (flat) | 0.5866 | 0.819 |
41
 
42
  ## Reproduction
43
 
44
  ```python
45
+ import pyterrier as pt
46
+ from tqdm import tqdm
47
+ import ir_datasets
48
+ from pyterrier_dr import FlexIndex, RetroMAE
49
+ pipeline = RetroMAE.msmarco_distill() >> FlexIndex("hotpotqa.retromae.flex")
50
+ dataset = ir_datasets.load('beir/hotpotqa')
51
+ docs = ({'docno': d.doc_id, 'text': d.default_text()} for d in tqdm(dataset.docs))
52
+ pipeline.index(docs)
53
  ```
54
 
55
  ## Metadata