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

Update context relevancy to rely on uptrains parse json function to solve parsing error. Added more informative error logging. #742

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

karolshe
Copy link

@karolshe karolshe commented Oct 8, 2024

Pull Request Template

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Description

The Context Relevancy Evaluation is currently using json.loads which causes a parsing error when run. The updated version uses Uptrains own parsing function parse_json which is used in several of the other evaluation metrics, to solve the parsing error.
The update also upgrades the logging with more details error handling .

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style (BLACK) of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation accordingly.
  • I have added an appropriate CHANGELOG entry.

Author's Note

Please provide any additional information, questions, or concerns you have about this pull request.

…olve parsing error. Added more informative error logging.
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.

1 participant