Skip to content

Commit b3c768b

Browse files
authored
docs: removed SUPPORTED_LANGUAGE (#1846)
1 parent f2d1ce1 commit b3c768b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

docs/howtos/customizations/metrics/_metrics_language_adaptation.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ from ragas.llms import llm_factory
3535
llm = llm_factory()
3636
```
3737

38-
To view the supported language codes
39-
40-
41-
```python
42-
from ragas.utils import RAGAS_SUPPORTED_LANGUAGE_CODES
43-
44-
print(list(RAGAS_SUPPORTED_LANGUAGE_CODES.keys()))
45-
```
46-
47-
['english', 'hindi', 'marathi', 'chinese', 'spanish', 'amharic', 'arabic', 'armenian', 'bulgarian', 'urdu', 'russian', 'polish', 'persian', 'dutch', 'danish', 'french', 'burmese', 'greek', 'italian', 'japanese', 'deutsch', 'kazakh', 'slovak']
48-
49-
5038
Now let's adapt it to 'hindi' as the target language using `adapt` method.
5139
Language adaptation in Ragas works by translating few shot examples given along with the prompts to the target language. Instructions remains in english.
5240

0 commit comments

Comments
 (0)