Repository: explodinggradients/ragas
Issue: Language adaptation for synthetic test data does not work
Root cause: Documentation Deficiency

[ ] I have checked the [documentation](https://docs.ragas.io/) and related resources and couldn't resolve my bug.

**Describe the bug**
I tried to use this tutorial: https://docs.ragas.io/en/v0.1.21/howtos/applications/use_prompt_adaptation.html#language-adaptation-for-testset-generation
But when executing this
```
from ragas.testset.evolutions import simple, reasoning, multi_context,conditional
```
I got an error that there is no module ragas.testset.evolutions.
I checked repo and also couldn't find it in your code for actual version.
Also in the code
```
generator = TestsetGenerator.from_langchain(
    generator_llm,
    critic_llm,
    embeddings
)

# adapt to language
language = "hindi"

generator.adapt(language, evolutions=[simple, reasoning,conditional,multi_context])
generator.save(evolutions=[simple, reasoning, multi_context,conditional])
```
TestsetGenerator doesn't have adapt method.

Ragas version: 0.2.12
Python version: 3.10

**Code to Reproduce**
```
from ragas.testset.generator import TestsetGenerator
from ragas.testset.evolutions import simple, reasoning, multi_context,conditional
from langchain_openai import ChatOpenAI, OpenAIEmbeddings

# generator with openai models
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
    generator_llm,
    critic_llm,
    embeddings
)

# adapt to language
language = "hindi"

generator.adapt(language, evolutions=[simple, reasoning,conditional,multi_context])
generator.save(evolutions=[simple, reasoning, multi_context,conditional])
```

**Error trace**

**Expected behavior**
I expected the code to be executed without any issues


**Additional context**
The last version that has possibility to execute this code is 0.2.0b0

<!-- PS: bugs suck but is also part of the process. We sincerely apologies for breaking your flow because of it, but don't worry, we got your back ❤️. We will get this fixed as fast as we can and thanks for helping us out by reporting it 🙏. -->


The document you're looking at is out of date.

See: https://docs.ragas.io/en/latest/howtos/customizations/testgenerator/_language_adaptation/

from ragas.testset.synthesizers.single_hop.specific import (
    SingleHopSpecificQuerySynthesizer,
)

distribution = [
    (SingleHopSpecificQuerySynthesizer(llm=generator_llm), 1.0),
]

for query, _ in distribution:
    prompts = await query.adapt_prompts("spanish", llm=generator_llm)
    query.set_prompts(**prompts)


-->

SyntaxError: 'await' outside function

@lryan599 兄弟有遇到这个问题吗，直接语法错误。我想自动根据数据集生成测试问题集，但是要中文的，所以调用这个试试，结果报语法错。

@shawn-maxiao 可以了解下python的异步编程。你可以在jupyter notebook上运行这段代码。不过最好别对这个测试集生成结果有啥期待。
 

@lryan599 我是直接复制出来直接在 服务器上 运行的，为啥会报语法错误呢；是只能在 jupyter notebook上运行吗。
测试集生成后，我再人工去编辑下；不然一堆文档不好撰写问题和回答来进行测试。兄弟有啥其他好办法吗，我现在是对一堆政策文件和论文期刊进行RAG LLM问答系统，要测试下这个RAG系统的性能；针对这些政策和论文期刊会比较花时间。有其他开源的测试集生成工具不？

@shawn-maxiao 先问LLM吧
![Image](https://github.com/user-attachments/assets/dfb43a15-e8a2-4790-8e5e-df332f351fd4)

@lryan599  多谢多谢。

Thank you!