Skip to content

Commit 9f54d01

Browse files
authored
fix typos (#102)
#99
1 parent 9f5db34 commit 9f54d01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ragas/metrics/context_recall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
CONTEXT_RECALL_RA = HumanMessagePromptTemplate.from_template(
1414
"""
1515
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.
16-
Think in steps and reason bofore coming to conclusion.
16+
Think in steps and reason before coming to conclusion.
1717
1818
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.
1919
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

src/ragas/metrics/faithfulnes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
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.
2323
statements:\nAlbert Einstein was born in Germany.\nAlbert Einstein was best known for his theory of relativity.
2424
question: Cadmium Chloride is slightly soluble in this chemical, it is also called what?
25-
answer: alochol
25+
answer: alcohol
2626
statements:\nCadmium Chloride is slightly soluble in alcohol.
2727
question: Were Shahul and Jithin of the same nationality?
2828
answer: They were from different countries.

0 commit comments

Comments
 (0)