Skip to content

[Feature Request] Enhance .upload_file to accept dataset name and version arguments #39901

Closed
@tomomi-code

Description

@tomomi-code

Is your feature request related to a problem? Please describe.
Currently, the .upload_file method only accepts the file path as an argument, which limits flexibility. I'd like to be able to pass additional arguments, such as the dataset name and version, to better manage datasets in the project. In the current setup, when using .upload_file to upload a .jsonl file to AI Foundry, the uploaded data is assigned a random UUID, and the version is always set to 1. This makes it difficult to track and manage datasets effectively.
Documentation for reference: Azure AI Evaluation Documentation.

Describe the solution you'd like
I propose allowing users to specify the dataset name and version when calling the .upload_file method. For example, the method could be extended to accept these arguments as shown below:

client.upload_file('file_path', 'dataset_name', 'dataset_version')

This would provide greater flexibility in managing and organizing datasets within a project.

Describe alternatives you've considered
Since it's currently not possible to specify the dataset name and version programmatically through the .upload_file method, the only alternative is to manually update these details via the UI after uploading the data. However, this approach is less efficient and introduces potential for human error, especially when dealing with multiple datasets. Being able to set these values programmatically would streamline the process and improve workflow efficiency.

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.EvaluationIssues related to the client library for Azure AI EvaluationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions