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

fix: Fix deserialization of pipelines that contain LLMEvaluator subclasses #7891

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

shadeMe
Copy link
Collaborator

@shadeMe shadeMe commented Jun 19, 2024

Related Issues

Proposed Changes:

The subclass of the LLMEvaluator component were not using the @component decorator, which prevented them from being added to the internal component registry. This caused a failure when deserializing a pipeline that contained on those components. Furthermore, both subclasses were missing to_dict methods, which lead to the wrong base class method being invoked resulting in yet another failure.

How did you test it?

Unit tests

Checklist

@shadeMe shadeMe added topic:eval 2.x Related to Haystack v2.0 labels Jun 19, 2024
@github-actions github-actions bot added topic:tests type:documentation Improvements on the docs labels Jun 19, 2024
@shadeMe shadeMe force-pushed the fix/llm-evaluator-subclass-serde branch from 92c9856 to 86ca7b9 Compare June 19, 2024 11:13
@shadeMe shadeMe marked this pull request as ready for review June 19, 2024 11:29
@shadeMe shadeMe requested review from a team as code owners June 19, 2024 11:29
@shadeMe shadeMe requested review from dfokina, vblagoje and davidsbatista and removed request for a team June 19, 2024 11:29
@coveralls
Copy link
Collaborator

coveralls commented Jun 19, 2024

Pull Request Test Coverage Report for Build 9580972165

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 89.883%

Totals Coverage Status
Change from base Build 9579890364: 0.006%
Covered Lines: 6965
Relevant Lines: 7749

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 19, 2024

Pull Request Test Coverage Report for Build 9581003751

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 89.883%

Totals Coverage Status
Change from base Build 9579890364: 0.006%
Covered Lines: 6965
Relevant Lines: 7749

💛 - Coveralls

Copy link
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shadeMe shadeMe merged commit fe60eed into deepset-ai:main Jun 19, 2024
30 checks passed
@shadeMe shadeMe deleted the fix/llm-evaluator-subclass-serde branch June 19, 2024 11:47
@coveralls
Copy link
Collaborator

coveralls commented Jun 19, 2024

Pull Request Test Coverage Report for Build 9581203383

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 89.883%

Totals Coverage Status
Change from base Build 9579890364: 0.006%
Covered Lines: 6965
Relevant Lines: 7749

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 topic:eval topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FaithfulnesEvaluator and ContextRelevanceEvaluator cannot be loaded via Pipeline.from_dict
3 participants