From 7923102c47fb594144a78198d75ddb72cbfa3fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Romagn=C3=A9?= Date: Mon, 27 Jan 2025 09:09:39 +0100 Subject: [PATCH] Faithfulness prompt update to avoid having single quotes in response --- src/ragas/prompt/pydantic_prompt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ragas/prompt/pydantic_prompt.py b/src/ragas/prompt/pydantic_prompt.py index ce1fc123b..aa7355a12 100644 --- a/src/ragas/prompt/pydantic_prompt.py +++ b/src/ragas/prompt/pydantic_prompt.py @@ -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):