Skip to content

Commit

Permalink
Fix typo in dense retrieval doc (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
MXueguang authored Jan 17, 2021
1 parent a8c9443 commit 889a976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/dense-retrieval.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ recall_1000 all 0.9618
```

> To evaluate with on-the-fly query encoding, replace `--encoded-queries` with our pretrained encoder model
> `--encoder tct_colbert-msmarco`. The encoding will run on CPU by default. To enable GPU, add `--device cuda:0`
> on [Hugging Face](https://huggingface.co/castorini/tct_colbert-msmarco/tree/main)
> `--encoder castorini/tct_colbert-msmarco`. The encoding will run on CPU by default. To enable GPU, add `--device cuda:0`.
> NOTE: Using GPU query encoding will give slightly different result. (E.g. MRR @10: 0.3349694137444839)

Expand Down Expand Up @@ -82,7 +83,8 @@ recall_1000 all 0.9640

You'll notice that hnsw index leads to a small loss in effectiveness.
> To evaluate with on-the-fly query encoding, replace `--encoded-queries` with our pretrained encoder model
> `--encoder tct_colbert-msmarco`. The encoding will run on CPU by default. To enable GPU, add `--device cuda:0`
> on [Hugging Face](https://huggingface.co/castorini/tct_colbert-msmarco/tree/main)
> `--encoder castorini/tct_colbert-msmarco`. The encoding will run on CPU by default. To enable GPU, add `--device cuda:0`.
> NOTE: Using GPU query encoding will give slightly different result. (E.g. MRR @10: 0.3349479237731372)

Expand Down
2 changes: 1 addition & 1 deletion scripts/msmarco-passage/build_hnsw_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
print(vectors)
print('Indexing')
hnsw_index.add(vectors)
faiss.write_index(hnsw_index, os.path.join(args.bf_index, 'index'))
faiss.write_index(hnsw_index, os.path.join(args.hnsw_index, 'index'))

0 comments on commit 889a976

Please sign in to comment.