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

feat: Developing Verifiers #1563

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

feat: Developing Verifiers #1563

wants to merge 11 commits into from

Conversation

GitHoobar
Copy link
Collaborator

Description

Adding verifiers module to camel

Motivation and Context

Why is this change required? What problem does it solve?
close #1551

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds core functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (update in the documentation)
  • Example (update in the folder of example)

Implemented Tasks

  • Code verifier and examples for mathematical programming

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • I have read the CONTRIBUTION guide. (required)
  • My change requires a change to the documentation.
  • I have updated the tests accordingly. (required for a bug fix or a new feature)
  • I have updated the documentation accordingly.

@zjrwtx zjrwtx self-requested a review February 7, 2025 13:36
Copy link
Member

@Wendong-Fan Wendong-Fan left a comment

Choose a reason for hiding this comment

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

thanks @GitHoobar ! left some initial comments

camel/verifiers/code_verifier.py Outdated Show resolved Hide resolved
3. Verifying outputs against expected results
"""

def __init__(
Copy link
Member

Choose a reason for hiding this comment

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

could we add batch process support and add timeout setting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Wendong-Fan for adding batch processing, I would need to add a run_batch method to the BaseInterpreter class. Should I go ahead and make the changes?

Copy link
Member

Choose a reason for hiding this comment

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

I think we can also leave the batch process logic within CodeVerifier, the batch processing logic is more related to verifier rather than code execution, WDYT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using it in the CodeVerifier would mean using ThreadPoolExecutor while in interpreter it would be based on ProcessPoolExecutor.
I think we will be okay moving with ThreadPool for now. Let me know your thoughts on this.

Copy link
Member

@Wendong-Fan Wendong-Fan left a comment

Choose a reason for hiding this comment

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

thanks @GitHoobar ! Left some comments below

camel/verifiers/code_verifier.py Outdated Show resolved Hide resolved
3. Verifying outputs against expected results
"""

def __init__(
Copy link
Member

Choose a reason for hiding this comment

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

I think we can also leave the batch process logic within CodeVerifier, the batch processing logic is more related to verifier rather than code execution, WDYT?

camel/verifiers/code_verifier.py Outdated Show resolved Hide resolved
camel/verifiers/code_verifier.py Outdated Show resolved Hide resolved
camel/verifiers/code_verifier.py Show resolved Hide resolved
camel/verifiers/code_verifier.py Outdated Show resolved Hide resolved
camel/verifiers/code_verifier.py Outdated Show resolved Hide resolved
camel/verifiers/code_verifier.py Show resolved Hide resolved
@GitHoobar GitHoobar marked this pull request as ready for review February 13, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add verifier module to evaluate agentic data pipeline
3 participants