macavaney commited on
Commit
555ff10
1 Parent(s): 94c0faa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -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,28 @@ viewer: false
22
  # Load the artifact
23
  import pyterrier_alpha as pta
24
  artifact = pta.Artifact.from_hf('pyterrier/scifact.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 SciFact
18
 
19
  ## Usage
20
 
 
22
  # Load the artifact
23
  import pyterrier_alpha as pta
24
  artifact = pta.Artifact.from_hf('pyterrier/scifact.retromae.flex')
25
+ artifact.np_retriever()
26
  ```
27
 
28
  ## Benchmarks
29
 
30
+ `scifact/test`
31
+
32
+ | name | nDCG@10 | R@1000 |
33
+ |:----------|----------:|---------:|
34
+ | np (flat) | 0.6474 | 0.98 |
35
 
36
  ## Reproduction
37
 
38
  ```python
39
+ import pyterrier as pt
40
+ from tqdm import tqdm
41
+ import ir_datasets
42
+ from pyterrier_dr import FlexIndex, RetroMAE
43
+ pipeline = RetroMAE.msmarco_distill() >> FlexIndex("scifact.retromae.flex")
44
+ dataset = ir_datasets.load('beir/scifact')
45
+ docs = ({'docno': d.doc_id, 'text': d.default_text()} for d in tqdm(dataset.docs))
46
+ pipeline.index(docs)
47
  ```
48
 
49
  ## Metadata