Skip to content

Commit

Permalink
Faithfulness prompt update to avoid having single quotes in response
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelromagne committed Jan 27, 2025
1 parent f5bc2b5 commit 7923102
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ragas/prompt/pydantic_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def _generate_output_signature(self, indent: int = 4) -> str:
f"Please return the output in a JSON format that complies with the "
f"following schema as specified in JSON Schema:\n"
f"{self.output_model.model_json_schema()}"
"Do not use single quotes in your response but double quotes,"
"properly escaped with a backslash."
)

def _generate_examples(self):
Expand Down

0 comments on commit 7923102

Please sign in to comment.