Will different searcher and document_searcher affect the search results?
Luoyang144 opened this issue · comments
Hello, here is my code:
encoder = DprQueryEncoder('xxx/DPR_model')
dpr_tokenizer = DPRQuestionEncoderTokenizer.from_pretrained('xxx/DPR_model')
searcher = FaissSearcher('/wiki_index_data/dindex-wikipedia-dpr_single_nq-bf-20200115-cd5034', encoder)
doc_searcher = LuceneSearcher('index-wikipedia-dpr-20210120-d1b9e6')
I use different source in searcher
and doc_searcher
, will it cause error when I use it to retrieval documents?