Skip to content

Commit

Permalink
docs: removed SUPPORTED_LANGUAGE (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmachan authored Jan 14, 2025
1 parent f2d1ce1 commit b3c768b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/howtos/customizations/metrics/_metrics_language_adaptation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b3c768b

Please sign in to comment.