Skip to content

Commit

Permalink
Updated the instruction of PydanticPrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
sahusiddharth committed Feb 6, 2025
1 parent a336eb0 commit fb0df1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ragas/metrics/_faithfulness.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class StatementGeneratorOutput(BaseModel):
class StatementGeneratorPrompt(
PydanticPrompt[StatementGeneratorInput, StatementGeneratorOutput]
):
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."
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."
input_model = StatementGeneratorInput
output_model = StatementGeneratorOutput
examples = [
Expand Down

0 comments on commit fb0df1a

Please sign in to comment.