Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout Error #1667

Open
Dormiveglia-elf opened this issue Nov 13, 2024 · 4 comments
Open

Timeout Error #1667

Dormiveglia-elf opened this issue Nov 13, 2024 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Dormiveglia-elf
Copy link

ERROR:ragas.executor:Exception raised in Job[2]: TimeoutError()
ERROR:ragas.executor:Exception raised in Job[7]: TimeoutError()
ERROR:ragas.executor:Exception raised in Job[10]: TimeoutError()
ERROR:ragas.executor:Exception raised in Job[15]: TimeoutError()
....

I use GPT-4o and encountered many timeout error, any ideas?

@Dormiveglia-elf Dormiveglia-elf added the question Further information is requested label Nov 13, 2024
@dosubot dosubot bot added the bug Something isn't working label Nov 13, 2024
@Dormiveglia-elf
Copy link
Author

Dormiveglia-elf commented Nov 13, 2024

I have reduced the number of timeout error by adjusting the max_workers to 60 and time_out parameter to 120 mentioned in https://docs.ragas.io/en/stable/howtos/customizations/_run_config/?h=time

But still some error existing, I think 120 is a very long time. Any ideas?

@YuffieHuang
Copy link

max_workers

Further reducing max_workers solved the same issue for me. I set it to be 8 for my locally hosted models.

@jjmachan
Copy link
Member

hey anothe approach is batch_size argument for evalaute() https://docs.ragas.io/en/stable/references/evaluate/#ragas.evaluation.evaluate

something else you could try? easier to reason about IMO

@Sergio-Zavota
Copy link

reducing max_workers to 10 and increasing the timeout to 120 seconds also worked for me. Even with a 120-second timeout, I could still get a parallelism of 8-9 out of 10, which might indicate that just a few workers were taking a long time to process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants