haystack-tutorials icon indicating copy to clipboard operation
haystack-tutorials copied to clipboard

DPR inference

Open salbatarni opened this issue 2 years ago • 2 comments
trafficstars

  • 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 avatar Aug 17 '23 20:08 salbatarni

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.

jdixosnd avatar Aug 18 '23 04:08 jdixosnd

@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.

salbatarni avatar Aug 18 '23 04:08 salbatarni