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 call _get_keys for custom_evaluator #9763

Merged

Conversation

Buckler89
Copy link
Contributor

@Buckler89 Buckler89 commented Aug 25, 2023

In the function _load_run_evaluators the function _get_keys was not called if only custom_evaluators parameter is used

  • Description: In the function _load_run_evaluators the function _get_keys was not called if only custom_evaluators parameter is used,
  • Issue: no issue created for this yet,
  • Dependencies: None,
  • Tag maintainer: @vowelparrot,
  • Twitter handle: Buckler89

In the function _load_run_evaluators _get_keys is was not called in only custom_evaluator are used
@vercel
Copy link

vercel bot commented Aug 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 29, 2023 8:53am
langchain-deprecated ⬜️ Ignored (Inspect) Visit Preview Aug 29, 2023 8:53am

@dosubot dosubot bot added the 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature label Aug 25, 2023
[isinstance(e, EvaluatorType) for e in config.evaluators]
if config.evaluators or config.custom_evaluators or any(
[isinstance(e, EvaluatorType) for e in config.evaluators] or any(
[isinstance(e, EvaluatorType) for e in config.custom_evaluators])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should only be StringRunEvaluatorChain for this second check

@Buckler89
Copy link
Contributor Author

Hi, @hinthornw I finally set up the dev env properly. All tests passed. Let me know.

@liuhu
Copy link

liuhu commented Aug 30, 2023

Hi, @hinthornw @baskaryan Cloud you merge this PR? Or any other suggestions ?

@hinthornw hinthornw merged commit a28e888 into langchain-ai:master Aug 30, 2023
27 checks passed
@hinthornw
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants