Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will different searcher and document_searcher affect the search results? #1695

Open
Luoyang144 opened this issue Oct 31, 2023 · 0 comments
Open

Comments

@Luoyang144
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant