Skip to content

LLMBasedFaithfulness does not work when using LLMs other than OpenAI #69

Open
@kelvinchanwh

Description

@kelvinchanwh

In continuous_eval/metrics/generation/text/llm_based.py, line 39, the full model parameters are not being passed to the LLMBasedContextCoverage class. This means that the code defaults to calling OpenAI API even if another LLM is passed as self.model

Changes requied

AS-IS:
context_coverage = LLMBasedContextCoverage(use_few_shot=self.use_few_shot)

TO-BE:

context_coverage = LLMBasedContextCoverage(model=self._llm, use_few_shot=self.use_few_shot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions