Update context relevancy to rely on uptrains parse json function to solve parsing error. Added more informative error logging. #742
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Type of Change
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
Author's Note
Please provide any additional information, questions, or concerns you have about this pull request.