1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| RAG QA results: ( [ QuerySolution(question="What is George Rankin's occupation?", docs=['George Rankin is a politician.', 'Thomas Marwick is a politician.', 'Oliver Badman is a politician.', 'Montebello is a part of Rockland County.', 'Marina is bom in Minsk.', "Erik Hort's birthplace is Montebello.", 'The prince used the lost glass slipper to search the kingdom.', 'When the slipper fit perfectly, Cinderella was reunited with the prince.', 'Cinderella attended the royal ball.'], doc_scores=array([1.04454916e-01, 2.88453687e-02, 2.86224239e-02, 2.37302870e-03, 1.60382181e-03, 1.54294019e-03, 1.40683217e-03, 1.07797284e-03, 2.29945501e-05]), answer='Politician.', gold_answers=['Politician'], gold_docs=['George Rankin is a politician.']), QuerySolution(question='How did Cinderella reach her happy ending?', docs=['When the slipper fit perfectly, Cinderella was reunited with the prince.', 'Cinderella attended the royal ball.', 'The prince used the lost glass slipper to search the kingdom.', 'Marina is bom in Minsk.', 'Montebello is a part of Rockland County.', 'Thomas Marwick is a politician.', 'George Rankin is a politician.', "Erik Hort's birthplace is Montebello.", 'Oliver Badman is a politician.'], doc_scores=array([4.44708555e-02, 4.02573902e-02, 2.10223824e-02, 9.48902014e-04, 4.04130761e-04, 3.92286642e-04, 2.82675803e-04, 4.75912597e-05, 2.01481327e-05]), answer='By attending the royal ball and the prince searching for her using the lost glass slipper.', gold_answers=['By going to the ball.'], gold_docs=['Cinderella attended the royal ball.', 'The prince used the lost glass slipper to search the kingdom.', 'When the slipper fit perfectly, Cinderella was reunited with the prince.']), QuerySolution(question="What county is Erik Hort's birthplace a part of?", docs=["Erik Hort's birthplace is Montebello.", 'Montebello is a part of Rockland County.', 'Marina is bom in Minsk.', 'George Rankin is a politician.', 'The prince used the lost glass slipper to search the kingdom.', 'Thomas Marwick is a politician.', 'Oliver Badman is a politician.', 'When the slipper fit perfectly, Cinderella was reunited with the prince.', 'Cinderella attended the royal ball.'], doc_scores=array([9.89871677e-02, 5.80349811e-02, 2.69545125e-03, 1.67774318e-03, 1.51392444e-03, 1.29586220e-03, 3.99996366e-04, 1.57814418e-04, 4.49168290e-06]), answer='Rockland County.', gold_answers=['Rockland County'], gold_docs=["Erik Hort's birthplace is Montebello.", 'Montebello is a part of Rockland County.']) ], [ "To determine George Rankin's occupation, we need to analyze the given information. The Wikipedia titles provided do not directly mention George Rankin's occupation. However, the fact that there are Wikipedia titles for George Rankin, Thomas Marwick, and Oliver Badman, all of which are politicians, suggests that George Rankin is also a politician.\n\nAnswer: Politician.", "To answer this question, we need to analyze the given information. However, the provided Wikipedia titles do not directly mention Cinderella's journey to her happy ending. They only provide brief summaries of Cinderella's story.\n\nThe first title mentions Cinderella being reunited with the prince when the slipper fit perfectly, but it doesn't explain how she reached that point. The second title mentions Cinderella attending the royal ball, but it doesn't provide any context. The third title mentions the prince using the lost glass slipper to search the kingdom, which is a crucial part of the Cinderella story.\n\nSince the provided information is incomplete, we can't directly answer the question. However, based on the general knowledge of the Cinderella story, we can infer that Cinderella reached her happy ending by attending the royal ball, losing a glass slipper, and the prince searching for her using the slipper.\n\nAnswer: By attending the royal ball and the prince searching for her using the lost glass slipper.", "To answer this question, we need to find the connection between Erik Hort's birthplace and the county. We know that Erik Hort's birthplace is Montebello, and Montebello is a part of Rockland County.\n\nTherefore, we can conclude that Erik Hort's birthplace is a part of Rockland County.\nAnswer: Rockland County." ], [ {'prompt_tokens': 770, 'completion_tokens': 75, 'finish_reason': 'stop'}, {'prompt_tokens': 785, 'completion_tokens': 201, 'finish_reason': 'stop'}, {'prompt_tokens': 783, 'completion_tokens': 72, 'finish_reason': 'stop'} ], {'Recall@1': 0.6111, 'Recall@2': 0.8889, 'Recall@5': 1.0, 'Recall@10': 1.0, 'Recall@20': 1.0, 'Recall@30': 1.0, 'Recall@50': 1.0, 'Recall@100': 1.0, 'Recall@150': 1.0, 'Recall@200': 1.0}, {'ExactMatch': 0.6667, 'F1': 0.7451} )
|