From e7164cb71776bf7fb12873ec92aa654f4977d049 Mon Sep 17 00:00:00 2001 From: Shahules786 Date: Tue, 29 Aug 2023 10:14:45 +0530 Subject: [PATCH] fix typos --- src/ragas/metrics/context_recall.py | 2 +- src/ragas/metrics/faithfulnes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ragas/metrics/context_recall.py b/src/ragas/metrics/context_recall.py index 6e5977ca9..c78f34824 100644 --- a/src/ragas/metrics/context_recall.py +++ b/src/ragas/metrics/context_recall.py @@ -13,7 +13,7 @@ CONTEXT_RECALL_RA = HumanMessagePromptTemplate.from_template( """ Given a context, and an answer, analyze each sentence in the answer and classify if the sentence can be attributed to the given context or not. -Think in steps and reason bofore coming to conclusion. +Think in steps and reason before coming to conclusion. context: Albert Einstein (14 March 1879 – 18 April 1955) was a German-born theoretical physicist,widely held to be one of the greatest and most influential scientists of all time. Best known for developing the theory of relativity, he also made important contributions to quantum mechanics, and was thus a central figure in the revolutionary reshaping of the scientific understanding of nature that modern physics accomplished in the first decades of the twentieth century. His mass–energy equivalence formula E = mc2, which arises from relativity theory, has been called "the world's most famous equation". He received the 1921 Nobel Prize in Physics "for his services to theoretical physics, and especially for his discovery of the law of the photoelectric effect", a pivotal step in the development of quantum theory. His work is also known for its influence on the philosophy of science. In a 1999 poll of 130 leading physicists worldwide by the British journal Physics World, Einstein was ranked the greatest physicist of all time. His intellectual achievements and originality have made Einstein synonymous with genius. answer: Albert Einstein born in 14 March 1879 was German-born theoretical physicist, widely held to be one of the greatest and most influential scientists of all time. He received the 1921 Nobel Prize in Physics "for his services to theoretical physics. He published 4 papers in 1905. Einstein moved to Switzerland in 1895 diff --git a/src/ragas/metrics/faithfulnes.py b/src/ragas/metrics/faithfulnes.py index 624f31744..6387ffd4b 100644 --- a/src/ragas/metrics/faithfulnes.py +++ b/src/ragas/metrics/faithfulnes.py @@ -22,7 +22,7 @@ answer: He was a German-born theoretical physicist, widely acknowledged to be one of the greatest and most influential physicists of all time. He was best known for developing the theory of relativity, he also made important contributions to the development of the theory of quantum mechanics. statements:\nAlbert Einstein was born in Germany.\nAlbert Einstein was best known for his theory of relativity. question: Cadmium Chloride is slightly soluble in this chemical, it is also called what? -answer: alochol +answer: alcohol statements:\nCadmium Chloride is slightly soluble in alcohol. question: Were Shahul and Jithin of the same nationality? answer: They were from different countries.