-
Notifications
You must be signed in to change notification settings - Fork 389
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
Active listeners for Feedback Dataset #4658
Comments
It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!
|
I also just encountered this problem and found it very surprising to find out that listeners only work with pre-built template datasets. From what I could discover it's because |
This issue is stale because it has been open for 90 days with no activity. |
This issue was closed because it has been inactive for 30 days since being marked as stale. |
Reopening, as we might still want to tackle this one. |
# Description <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This PR adds the `argilla.webhooks` module to work with webhooks from the SDK. With the changes on this PR, users can easily create webhook listeners using the python SDK. For example, listening changes can be defined as follows: ```python import argilla as rg @rg.webhook_listener(events="response.updated") async def on_response_updated(response: rg.UserResponse, **kwargs): ... # do your work @rg.webhook_listener(events=["dataset.created", "dataset.updated", "dataset.published"]) async def on_dataset_event( type: str, timestamp: datetime, dataset: rg.Dataset, **kwargs, ): print(f"Event type {type} at {timestamp}") print(dataset.settings) ``` You can find a fully basic example using webhooks [here](https://github.com/argilla-io/argilla/tree/feat/argilla/working-with-webhooks/examples/webhooks/basic-webhooks) This is still a draft PR and the final feature may change. Refs: #4658 **Type of change** <!-- Please delete options that are not relevant. Remember to title the PR according to the type of change --> - New feature (non-breaking change which adds functionality) **How Has This Been Tested** <!-- Please add some reference about how your feature has been tested. --> **Checklist** <!-- Please go over the list and make sure you've taken everything into account --> - I added relevant documentation - I followed the style guidelines of this project - I did a self-review of my code - I made corresponding changes to the documentation - I confirm My changes generate no new warnings - I have added tests that prove my fix is effective or that my feature works - I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: David Berenstein <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sara Han <[email protected]> Co-authored-by: José Francisco Calvo <[email protected]>
This issue is stale because it has been open for 90 days with no activity. |
Fixed in #5467 |
Is your feature request related to a problem? Please describe.
For feedback datasets, which carry the ability to carry complex labeling tasks, manual interactions to trigger training/evaluation can be a bottleneck for high frequency models.
Describe the solution you'd like
Active listeners for datasets in Argilla to trigger functions on submit, maybe an ability to ex. trigger on submitted 50/60 examples or 60/60 examples etc.
The text was updated successfully, but these errors were encountered: