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

[Feature Request] Allow Path objects for evaluate data and output_path parameters #3206

Open
pamelafox opened this issue May 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request promptflow-evals

Comments

@pamelafox
Copy link
Member

Currently the types for evaluate function are:

def evaluate(
    *,
    evaluation_name: Optional[str] = None,
    target: Optional[Callable] = None,
    data: Optional[str] = None,
    evaluators: Optional[Dict[str, Callable]] = None,
    evaluator_config: Optional[Dict[str, Dict[str, str]]] = {},
    tracking_uri: Optional[str] = None,
    output_path: Optional[str] = None,
    **kwargs,
):

However, many Python developers use Path objects to represent paths. It'd be nice to be able to directly pass those in to data and output_path. For now, I am casting them to strings with str().

@pamelafox pamelafox added the enhancement New feature or request label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request promptflow-evals
Projects
None yet
Development

No branches or pull requests

4 participants