Repository navigation
feat: Implement DeepEvalEvaluator - #346
Merged
Merged
Conversation
shadeMe
marked this pull request as draft
February 6, 2024 15:21
shadeMe
force-pushed
the
feat/deepeval-evaluator
branch
from
February 6, 2024 16:07
e03b23f to
053b71f
Compare
shadeMe
force-pushed
the
feat/deepeval-evaluator
branch
from
February 6, 2024 16:22
35bd9ee to
60e5922
Compare
DeepEvalEvaluator and DeepEvalMetricsDeepEvalEvaluator
masci
reviewed
Feb 9, 2024
masci
left a comment
Contributor
There was a problem hiding this comment.
I'm not familiar with deepeval but code looks good to me. I left a question about api docs now that we merged the CI job that will attempt to run hatch run docs on integrations' changes merged on main. Another option might be making that CI job more resilient.
masci
approved these changes
Feb 9, 2024
masci
left a comment
Contributor
There was a problem hiding this comment.
Thanks for adding the docs, LGTM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #250.
We introduce
DeepEvalEvaluator, a component that uses the DeepEval LLM evaluation framework to calculate evaluation metrics for RAG pipelines (among others). Refer deepset-ai/haystack#6784 for an overview of the API design.This PR introduces the following user-facing classes:
DeepEvalMetric- A enumeration that lists the supported DeepEval metrics. Currently, only those metrics that are related to RAG pipelines are supported.DeepEvalEvaluator- Th pipeline component interfaces with the evaluation framework. It accepts a single metric and its optional parameters. The inputs to the pipeline are dynamically configured depending on the metric. This is done with help of a metric descriptor table that contains metadata concerning input/output conversion formats, expected inputs/outputs, etc.The output of the component is a nested list of metric results. Each input can have one or more results, depending on the metric. Each result is a dictionary containing the following keys and values:
name- The name of the metric.score- The score of the metric.explanation- An optional explanation of the score.