Skip to content

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

Draft
karolshe wants to merge 1 commit intouptrain-ai:mainfrom
karolshe:update_context_relevancy
Draft

Update context relevancy to rely on uptrains parse json function to solve parsing error. Added more informative error logging.#742
karolshe wants to merge 1 commit intouptrain-ai:mainfrom
karolshe:update_context_relevancy

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