프로젝트
GitHub에서 보기
texttron/hyde
소개
HyDE: 관련성 레이블 없이 수행하는 정밀한 제로샷 밀집 검색
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHyDE: Precise Zero-Shot Dense Retrieval without Relevance Labels
This is code repository for the paper: HyDE: Precise Zero-Shot Dense Retrieval without Relevance Labels.
HyDE zero-shot instructs GPT3 to generate a fictional document and re-encodes it with unsupervised retriever Contriever to search in its embedding space. HyDE significantly outperforms Contriever across tasks and languages and it does not require any human labeled relevance judgement.

Steps to run the code
Install
pyseriniby following the guide. We use pyserini to conduct dense retrieval and evaluation.Download the prebuilt Contrever faiss index
wget https://www.dropbox.com/s/dytqaqngaupp884/contriever_msmarco_index.tar.gz
tar -xvf contriever_msmarco_index.tar.gz
- Setup GPT3 API key
export OPENAI = <your key>
- Run
hyde-dl19.ipynb, it will run the experiment on the TREC DL19 dataset. Runhyde-demo.ipynb, it will go through HyDE pipeline with an example query.
Citation
@article{hyde,
title = {Precise Zero-Shot Dense Retrieval without Relevance Labels},
author = {Luyu Gao and Xueguang Ma and Jimmy Lin and Jamie Callan},
journal={arXiv preprint arXiv:2212.10496},
year = {2022}
}
관련 프로젝트 살펴보기
불러오는 중…