From b3c768b5e0526e2051a597094f3f4e45e9c1143c Mon Sep 17 00:00:00 2001 From: Jithin James Date: Tue, 14 Jan 2025 19:32:39 +0530 Subject: [PATCH] docs: removed SUPPORTED_LANGUAGE (#1846) --- .../metrics/_metrics_language_adaptation.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/howtos/customizations/metrics/_metrics_language_adaptation.md b/docs/howtos/customizations/metrics/_metrics_language_adaptation.md index f8fe979c82..bd47b38c4a 100644 --- a/docs/howtos/customizations/metrics/_metrics_language_adaptation.md +++ b/docs/howtos/customizations/metrics/_metrics_language_adaptation.md @@ -35,18 +35,6 @@ from ragas.llms import llm_factory llm = llm_factory() ``` -To view the supported language codes - - -```python -from ragas.utils import RAGAS_SUPPORTED_LANGUAGE_CODES - -print(list(RAGAS_SUPPORTED_LANGUAGE_CODES.keys())) -``` - - ['english', 'hindi', 'marathi', 'chinese', 'spanish', 'amharic', 'arabic', 'armenian', 'bulgarian', 'urdu', 'russian', 'polish', 'persian', 'dutch', 'danish', 'french', 'burmese', 'greek', 'italian', 'japanese', 'deutsch', 'kazakh', 'slovak'] - - Now let's adapt it to 'hindi' as the target language using `adapt` method. Language adaptation in Ragas works by translating few shot examples given along with the prompts to the target language. Instructions remains in english.