diff --git a/docs/_source/_common/tabs/question_settings.md b/docs/_source/_common/tabs/question_settings.md index bba3763418..a75c46f787 100644 --- a/docs/_source/_common/tabs/question_settings.md +++ b/docs/_source/_common/tabs/question_settings.md @@ -24,7 +24,8 @@ rg.MultiLabelQuestion( description="Select all that apply", labels={"hate": "Hate Speech" , "sexual": "Sexual content", "violent": "Violent content", "pii": "Personal information", "untruthful": "Untruthful info", "not_english": "Not English", "inappropriate": "Inappropriate content"}, # or ["hate", "sexual", "violent", "pii", "untruthful", "not_english", "inappropriate"] required=False, - visible_labels=4 + visible_labels=4, + labels_order="natural" ) ``` diff --git a/docs/_source/practical_guides/create_update_dataset/create_dataset.md b/docs/_source/practical_guides/create_update_dataset/create_dataset.md index 8b60dd6f28..b5db3b7072 100644 --- a/docs/_source/practical_guides/create_update_dataset/create_dataset.md +++ b/docs/_source/practical_guides/create_update_dataset/create_dataset.md @@ -95,6 +95,7 @@ The following arguments apply to specific question types: - `field`: A `SpanQuestion` is always attached to a specific field. Here you should pass a string with the name of the field where the labels of the `SpanQuestion` should be used. - `allow_overlapping`: In a `SpanQuestion`, this value specifies whether overlapped spans are allowed or not. It is set to `False` by default. Set to `True` to allow overlapping spans. - `visible_labels` (optional): In `LabelQuestion`, `MultiLabelQuestion` and `SpanQuestion` this is the number of labels that will be visible at first sight in the UI. By default, the UI will show 20 labels and collapse the rest. Set your preferred number to change this limit or set `visible_labels=None` to show all options. +- `labels_order` (optional): In `MultiLabelQuestion`, this determines the order in which labels are displayed in the UI. Set it to `natural` to show labels in the order they were defined, or `suggestion` to prioritize labels associated with suggestions. If scores are available, labels will be ordered by score. Defaults to `natural`. - `use_markdown` (optional): In `TextQuestion` define whether the field should render markdown text. Defaults to `False`. If you set it to `True`, you will be able to use all the Markdown features for text formatting, as well as embed multimedia content and PDFs. To delve further into the details, please refer to this [tutorial](/tutorials_and_integrations/tutorials/feedback/making-most-of-markdown.ipynb). ```{note}