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

Add RAGAS metrics to DeepEval #101

Closed
ColabDog opened this issue Sep 12, 2023 · 8 comments
Closed

Add RAGAS metrics to DeepEval #101

ColabDog opened this issue Sep 12, 2023 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ColabDog
Copy link
Contributor

Add RAGAS metrics to DeepEval.
Key metrics that would be useful:

  • Ragas Score (Harmonic mean)
  • Context Recall (for the retriever)

https://github.com/explodinggradients/ragas

@ColabDog ColabDog added enhancement New feature or request help wanted Extra attention is needed labels Sep 12, 2023
@jjmachan
Copy link

Hey guys Jithin from the Ragas team here
excited about this integration that you guys are doing and would love to offer any help to make this possible 🙂

cheers

@ColabDog
Copy link
Contributor Author

ColabDog commented Sep 15, 2023

Thanks @jjmachan !! Would love your help in adding RAGAS Score metric here.
One thing we need to do is provide a binary score threshold if it's a success/failure though. Would you be able to help submit a PR? We have a guide on writing a custom metric here: https://docs.confident-ai.com/docs/quickstart/custom-metrics

Here's an example for Bias you can take a look at if you want to also add ragas as a package to install: https://github.com/confident-ai/deepeval/blob/main/deepeval/metrics/bias_classifier.py

When contributing, we just use black for now :)

@jjmachan
Copy link

don't know when I'll get some cycles but when I do, I'll get to this :) . In the meantime, if getting on a call and helping design the implementation is useful to make it faster, I would love to!

@ColabDog
Copy link
Contributor Author

No worries - I'd love to get on a call to discuss this! Do you have a calendly link? Otherwise - please feeli free to book something in my Calendly here: https://calendly.com/jacky-twilix/30min

@ColabDog
Copy link
Contributor Author

FYI - I started the PR here #121 @jjmachan :)

@jjmachan
Copy link

awesome @ColabDog , excited to see that it is merged and try this out shortly. I've also booked a lot too

@ColabDog
Copy link
Contributor Author

Sweet - looking forward to chatting. I wrote a bit of documentation here: https://docs.confident-ai.com/docs/measuring_llm_performance/ragas_score

Would love for you to take a look and let me know if I missed anything!

@ColabDog
Copy link
Contributor Author

Closing this issue for now that since the documentation is written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants