You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## What
Improvements and bug fixes for metrics
## Why
These bugs appeared to cause drift in results from metrics assessments
to ragas metrics. Some improvements
- fixed temperature for self-check
- Improved prompts for context_relevancy
- post-processing changes for answer_relevancy
Copy file name to clipboardExpand all lines: src/ragas/metrics/context_relevance.py
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,12 @@
27
27
28
28
question: Were Scott Derrickson and Ed Wood of the same nationality?
29
29
context :\nScott Derrickson (born July 16, 1966) is an American director, screenwriter and producer He lives in Los Angeles, California He is best known for directing horror films such as "Sinister", "The Exorcism of Emily Rose", and "Deliver Us From Evil", as well as the 2016 Marvel Cinematic Universe installment, "Doctor Strange"Tyler Bates is an American musician, music producer, and composer for films, television, and video games. Adam Collis is an American filmmaker and actor.Conrad Brooks is an American actor.Edward Davis Wood Jr. (October 10, 1924 – December 10, 1978) was an American filmmaker, actor, writer, producer, and director.
30
-
Now given a question and context, extract the minimum number of sentences from the given context required to answer the question completely.
31
30
sentences:Scott Derrickson (born July 16, 1966) is an American director, screenwriter and producer. Edward Davis Wood Jr. (October 10, 1924 – December 10, 1978) was an American filmmaker, actor, writer, producer, and director.
32
31
32
+
question: How many were killed in the Tiananmen Square incident?
33
+
context:\nTiananmen Square incident, also called June Fourth incident or 6/4, series of protests and demonstrations in China in the spring of 1989 that culminated on the night of June 3–4 with a government crackdown on the demonstrators in Tiananmen Square in Beijing.
0 commit comments