From 9cb02dee135739091a35872ae7673bb25177be11 Mon Sep 17 00:00:00 2001 From: davidberenstein1957 Date: Thu, 3 Oct 2024 12:16:11 +0200 Subject: [PATCH] docs: Add brief section on updating templates --- argilla/docs/how_to_guides/custom_fields.md | 8 ++++++++ argilla/docs/how_to_guides/dataset.md | 1 + 2 files changed, 9 insertions(+) diff --git a/argilla/docs/how_to_guides/custom_fields.md b/argilla/docs/how_to_guides/custom_fields.md index 0d34c9356b..cb37197007 100644 --- a/argilla/docs/how_to_guides/custom_fields.md +++ b/argilla/docs/how_to_guides/custom_fields.md @@ -318,3 +318,11 @@ Besides the new `CustomField` code above, reusing the same approach as in the [U ![example-gallery-end](../assets/images/how_to_guides/custom_field/3d_object_viewer.png) +## Updating templates + +As described in the [dataset guide](./dataset.md), you can update certain setting attributes for a published dataset. This includes the custom fields templates, which is a usefule feature when you want to iterate on the template of a custom field without the need to create a new dataset. The following example shows how to update the template of a custom field. + +```python +dataset.settings.fields["custom"].template = "" +dataset.update() +``` diff --git a/argilla/docs/how_to_guides/dataset.md b/argilla/docs/how_to_guides/dataset.md index be5a962df0..47ed998fd4 100644 --- a/argilla/docs/how_to_guides/dataset.md +++ b/argilla/docs/how_to_guides/dataset.md @@ -511,6 +511,7 @@ Once a dataset is published, there are limited things you can update. Here is a |Title |✅ |✅ | |Required |❌ |❌ | |Use markdown|✅ |✅ | + |Template |✅ |❌ | === "Questions" | Attributes | From SDK | From UI |