Skip to content

Factual Correctness F1, Precision and Recall at the same time. #1772

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

Closed
Javier-Jimenez99 opened this issue Dec 19, 2024 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@Javier-Jimenez99
Copy link

Describe the Feature
The Factual Correctness metric takes a long time to compute and it is often interesting to inspect precision and Recall in addition to F1. That's why it would be interesting if instead of making 3 different calls to the same metric, it could be done in one call and return all 3 at the same time. I have seen that something similar happens with metrics like Rouge, but in that case it is not so necessary because it takes much less time.

Why is the feature important for you?
Because for a testset of only 50 questions it takes about 5 minutes to run these three metrics, so it is not scalable, nor is it compatible with other metrics that also take longer. For example, running the same with 10 metrics can take up to 1 hour. Whenever you can simplify LLM calls I think it is crucial to do so.

Thanks you a lot!

@Javier-Jimenez99 Javier-Jimenez99 added the enhancement New feature or request label Dec 19, 2024
@sahusiddharth
Copy link
Collaborator

Hi @Javier-Jimenez99,

Thank you for sharing your suggestion! Given your use case, it might be more efficient for you to implement a custom metric to calculate Precision, Recall, and F1 in a single call. You can find detailed guidance on how to create custom metrics in the documentation.

I hope this helps! Please let me know if you have any questions or need further assistance.

@sahusiddharth sahusiddharth added the waiting 🤖 waiting for response. In none will close this automatically label Jan 8, 2025
Copy link

Closing after 8 days of waiting for the additional info requested.

@github-actions github-actions bot removed the waiting 🤖 waiting for response. In none will close this automatically label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants