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

DPR inference #234

Open
salbatarni opened this issue Aug 17, 2023 · 2 comments
Open

DPR inference #234

salbatarni opened this issue Aug 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@salbatarni
Copy link

  • How to use the DPR model I trained in inference?
  • I am using other matrices, so how to get the similarity between a test query and passage?
@salbatarni salbatarni added the enhancement New feature or request label Aug 17, 2023
@jdixosnd
Copy link

You can load trained DPR using load method
reloaded_retriever = DensePassageRetriever.load(load_dir=save_dir, document_store=None)
Found this code in,
https://github.com/deepset-ai/haystack-tutorials/blob/main/tutorials/09_DPR_training.ipynb

Also, can you please elaborate your another query.

@salbatarni
Copy link
Author

@jdixosnd
I think you misunderstood
now I am done training a DPR model and I want to test it, how to do so? I am aware of the evaluation tutorial, however, the DPR data format is really different so I am unsure how to do it.

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

No branches or pull requests

2 participants