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

Added type validation #123

Merged
merged 3 commits into from
Mar 27, 2024
Merged

Added type validation #123

merged 3 commits into from
Mar 27, 2024

Conversation

ethan-tonic
Copy link
Collaborator

This PR adds checking for types to prevent confusion when people accidentally put the wrong types into the SDK (e.g. inputting a string instead of a list into the LLM Response)

response.llm_answer,
response.llm_context_list,
scores=scores,
reference_question=benchmark_item.question,
Copy link
Collaborator Author

@ethan-tonic ethan-tonic Mar 27, 2024

Choose a reason for hiding this comment

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

We need this btw so the type errors if someone inputs something wrong isn't confusing. Without the names, it just gives the position of the arguments in the error message without any names

@ethan-tonic ethan-tonic requested a review from akamor March 27, 2024 15:16
@ethan-tonic ethan-tonic merged commit 2d7b9ab into main Mar 27, 2024
5 checks passed
@ethan-tonic ethan-tonic deleted the add-type-validation branch March 27, 2024 17:37
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