PaddlePaddle / RocketQA

🚀 RocketQA, dense retrieval for information retrieval and question answering, including both Chinese and English state-of-the-art models.
Apache License 2.0
764 stars 130 forks source link

How to calculate and retrieve the best matching document for a query from a list of document? #124

Open Aritra02091998 opened 5 months ago

Aritra02091998 commented 5 months ago

I have been trying to fetch the best matched document given a query. But the code given in the examples seems to work only pairwise, given a query and document it finds the similarity. I want to find the best document from a list given a query fast. How can I achieve this please help.