Skip to content

feat: aspect critic with reference #1638

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

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

shahules786
Copy link
Member

No description provided.

@shahules786 shahules786 marked this pull request as ready for review November 7, 2024 07:06
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 7, 2024
@shahules786 shahules786 requested a review from jjmachan November 7, 2024 07:07
@shahules786 shahules786 merged commit 092a0c8 into explodinggradients:main Nov 7, 2024
16 checks passed
Comment on lines +45 to +50
scorer = AspectCritic(
name="correctness",
definition="Is the response factually similar to the reference?",
)
scorer.llm = openai_model
await scorer.single_turn_ascore(sample)
Copy link
Member

Choose a reason for hiding this comment

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

change this to using llm directly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants