Skip to content

Fix issue #69#73

Merged
yisz merged 1 commit intorelari-ai:mainfrom
kelvinchanwh:patch-2
Jun 11, 2024
Merged

Fix issue #69#73
yisz merged 1 commit intorelari-ai:mainfrom
kelvinchanwh:patch-2

Conversation

@kelvinchanwh
Copy link
Contributor

@kelvinchanwh kelvinchanwh commented Jun 11, 2024

Fix issue #69 where LLMs other than OpenAI APIs are not being called


🚀 This description was created by Ellipsis for commit 52de4da

Summary:

Fixes model passing in LLMBasedFaithfulness to ensure LLMBasedContextCoverage correctly utilizes the specified LLM model.

Key points:

  • Updated LLMBasedFaithfulness class in continuous_eval/metrics/generation/text/llm_based.py.
  • Fixed model passing to LLMBasedContextCoverage in __call__ method.

Generated with ❤️ by ellipsis.dev

Fix issue relari-ai#69 where LLMs other than OpenAI APIs are not being called
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 52de4da in 35 seconds

More details
  • Looked at 14 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. continuous_eval/metrics/generation/text/llm_based.py:39
  • Draft comment:
    The change correctly passes the model instance to LLMBasedContextCoverage, ensuring that the same LLM is used for both faithfulness and context coverage metrics. This is a necessary fix to maintain consistency and functionality across different LLMs.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR aims to fix an issue where LLMs other than OpenAI APIs are not being called by passing the model instance to the LLMBasedContextCoverage class. The change is made in the LLMBasedFaithfulness class where the model is now explicitly passed to the LLMBasedContextCoverage instance. This is a logical fix as it ensures that the same model used in the LLMBasedFaithfulness class is also used for context coverage, maintaining consistency across the evaluation metrics.

Workflow ID: wflow_h7pGXOOU7Qo3Vq4h


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@yisz
Copy link
Contributor

yisz commented Jun 11, 2024

@kelvinchanwh Thanks for contributing!

@yisz yisz merged commit c4579e1 into relari-ai:main Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants