Skip to content

Commit cb63a82

Browse files
Updated the instruction of StatementGeneratorPrompt in faithfulness (#1906)
#1904
1 parent 7c4997f commit cb63a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ragas/metrics/_faithfulness.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class StatementGeneratorOutput(BaseModel):
3434
class StatementGeneratorPrompt(
3535
PydanticPrompt[StatementGeneratorInput, StatementGeneratorOutput]
3636
):
37-
instruction = "Given a question, an answer, and sentences from the answer analyze the complexity of each sentence given under 'sentences' and break down each sentence into one or more fully understandable statements while also ensuring no pronouns are used in each statement. Format the outputs in JSON."
37+
instruction = "Given a question and an answer, analyze the complexity of each sentence in the answer. Break down each sentence into one or more fully understandable statements. Ensure that no pronouns are used in any statement. Format the outputs in JSON."
3838
input_model = StatementGeneratorInput
3939
output_model = StatementGeneratorOutput
4040
examples = [

0 commit comments

Comments
 (0)