Skip to content

Commit

Permalink
fix: add additional instructions to encourage output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgraber committed Oct 19, 2024
1 parent ca25a0c commit 923f7a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ragas/prompt/pydantic_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def to_string(self, data: t.Optional[InputModel] = None) -> str:
if data is not None
else "input: (None)\n"
)
+ "Respond only with a valid JSON object that complies with the specified schema.\n"
+ "output: "
)

Expand Down

0 comments on commit 923f7a4

Please sign in to comment.