Closed g-insana closed 1 year ago
@alvarobartt, did you want to include this during the workspace management efforts too?
Not yet, but for sure we can tackle it in the next release, the only consideration is that we're using two different APIs, one of the TextClassification
, TokenClassification
, and Text2Text
datasets and another one (v1) for the FeedbackDataset
, we need to evaluate whether it's worth merging both outputs or just providing different functions
Is your feature request related to a problem? Please describe. I believe it would be a useful addition to the client API the possibility to query the datasets available in a workspace. For example
Although it is now possible to achieve this using
datasets = rg.active_client().http_client.get("/api/datasets")
I believe it would be more intuitive to have a method for it.Describe the solution you'd like Keeping in line with other api calls, it would probably make sense to add optional arguments like
workspace (Optional[str])
Online documentation should list this method and suggest usage examples, like the following:
Describe alternatives you've considered For now, using
rg.active_client().http_client.get("/api/datasets")
Additional context The reason for the request came when working on code to ensure persistence of a hf argilla space, periodically checking whether the data has been modified, taking dumps of datasets on local disk and restoring datasets on hf in case the space has undergone reboot (hence losing all data).
Discussed first on slack channel
#02-support-and-questions
on Jun 22nd 2023. Invited by @davidberenstein1957 to submit this as an issue.