-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
It doesn't seem that testset generation supports several types of language.
One solution would be to use an adapt
function to translate the generation scripts in the same way as is done for metrics:
ragas/src/ragas/metrics/_faithfulness.py
Lines 203 to 212 in 27e48b0
def adapt(self, language: str, cache_dir: t.Optional[str] = None) -> None: | |
assert self.llm is not None, "LLM is not set" | |
logger.info(f"Adapting Faithfulness metric to {language}") | |
self.long_form_answer_prompt = self.long_form_answer_prompt.adapt( | |
language, self.llm, cache_dir | |
) | |
self.nli_statements_message = self.nli_statements_message.adapt( | |
language, self.llm, cache_dir | |
) |
Metadata
Metadata
Assignees
Labels
No labels