Skip to content

Commit

Permalink
Added more examples to the translation prompts (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
baswenneker committed Apr 1, 2024
1 parent 1dad492 commit b976369
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/ragas/llms/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ def _load(cls, language: str, name: str, cache_dir: str) -> Prompt:
"input": "Who was Albert Einstein and what is he best known for?",
"output": "अल्बर्ट आइंस्टीन कौन थे और वे किसके लिए सबसे ज्यादा प्रसिद्ध हैं?",
},
{
"translate_to": "dutch",
"input": "Who was queen Elizabeth and what is she best known for?",
"output": "Wie was koningin Elizabeth en waar is zij het meest bekend om?",
},
],
input_keys=["translate_to", "input"],
output_key="output",
Expand All @@ -305,7 +310,22 @@ def _load(cls, language: str, name: str, cache_dir: str) -> Prompt:
"अल्बर्ट आइंस्टीन अपने सापेक्षता के सिद्धांत के लिए सबसे अधिक प्रसिद्ध थे।",
]
},
}
},
{
"translate_to": "dutch",
"input": {
"statements": [
"Paris is the capital of France.",
"Croissants are a popular French pastry.",
]
},
"output": {
"statements": [
"Parijs is de hoofdstad van Frankrijk.",
"Croissants zijn een populair Frans gebak.",
]
},
},
],
input_keys=["translate_to", "input"],
output_key="output",
Expand Down

0 comments on commit b976369

Please sign in to comment.