explodinggradients / ragas

Evaluation framework for your Retrieval Augmented Generation (RAG) pipelines
https://docs.ragas.io
Apache License 2.0
6.35k stars 613 forks source link

max retries exceeded for SimpleEvolution #690

Open AshuKhandave opened 5 months ago

AshuKhandave commented 5 months ago

from ragas.testset import TestsetGenerator from ragas.testset.evolutions import simple, reasoning, multi_context

test_generator = TestsetGenerator( generator_llm=bedrock_model, critic_llm=bedrock_model, embeddings=bedrock_embeddings, docstore=docstore, )

distributions = {simple: 0.5, reasoning: 0.4, multi_context: 0.1}

testset = test_generator.generate_with_langchain_docs( documents=documents, test_size=15, distributions=distributions )

after running this code the embeddings are created but there seems to be issue with generating the test data. image

I'm trying to create the test dataset using llama2 from amazon bedrock.

AshuKhandave commented 5 months ago

@jjmachan could you please look into this issue

shahules786 commented 5 months ago

Hey @AshuKhandave Sorry for the late reply. Which models/ragas version are you using? Consider joining our discord channel for quick help.

AshuKhandave commented 5 months ago

Hey @shahules786 I'm using meta_llama2_13b and Amazon Titan for embedding using AWS bedrock.

shahules786 commented 5 months ago

I see @AshuKhandave would you be able to use better models? The thing with synthetic data generation is that only high-quality models like gpt 3.5 or on par with gpt 3.5 could produce high-quality results out of the box.

MohammedAlsayed commented 3 months ago

I'm getting the same error when trying on OpenAI