Skip to content

Commit b976369

Browse files
authored
Added more examples to the translation prompts (#826)
1 parent 1dad492 commit b976369

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/ragas/llms/prompt.py

+21-1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ def _load(cls, language: str, name: str, cache_dir: str) -> Prompt:
281281
"input": "Who was Albert Einstein and what is he best known for?",
282282
"output": "अल्बर्ट आइंस्टीन कौन थे और वे किसके लिए सबसे ज्यादा प्रसिद्ध हैं?",
283283
},
284+
{
285+
"translate_to": "dutch",
286+
"input": "Who was queen Elizabeth and what is she best known for?",
287+
"output": "Wie was koningin Elizabeth en waar is zij het meest bekend om?",
288+
},
284289
],
285290
input_keys=["translate_to", "input"],
286291
output_key="output",
@@ -305,7 +310,22 @@ def _load(cls, language: str, name: str, cache_dir: str) -> Prompt:
305310
"अल्बर्ट आइंस्टीन अपने सापेक्षता के सिद्धांत के लिए सबसे अधिक प्रसिद्ध थे।",
306311
]
307312
},
308-
}
313+
},
314+
{
315+
"translate_to": "dutch",
316+
"input": {
317+
"statements": [
318+
"Paris is the capital of France.",
319+
"Croissants are a popular French pastry.",
320+
]
321+
},
322+
"output": {
323+
"statements": [
324+
"Parijs is de hoofdstad van Frankrijk.",
325+
"Croissants zijn een populair Frans gebak.",
326+
]
327+
},
328+
},
309329
],
310330
input_keys=["translate_to", "input"],
311331
output_key="output",

0 commit comments

Comments
 (0)