Skip to content

Commit 6d9e496

Browse files
authored
add initial export of articles (#1)
1 parent 38b18f9 commit 6d9e496

71 files changed

Lines changed: 3354 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
author_id: 15914823752205
3+
category_id: 39646615083277
4+
created_at: '2025-01-09T16:24:44Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649211977869
9+
title: A Guide to Filter inside of annotation.results object
10+
updated_at: '2025-09-17T18:44:48Z'
11+
zendesk_article_id: 33346631335565
12+
---
13+
14+
# Understanding Annotation Results
15+
16+
 
17+
A Label Studio annotation consists of regions, stored as a list in the `annotation.result` field. For instance:
18+
19+
```
20+
"annotations": [
21+
{
22+
"id": 44553935,
23+
"result": [
24+
{
25+
"id": "zLSY-XLk64",
26+
"type": "choices",
27+
"value": {
28+
"choices": [
29+
"yes"
30+
]
31+
},
32+
"origin": "manual",
33+
"to_name": "query",
34+
"from_name": "understand"
35+
},
36+
{
37+
"id": "uh87CbF1k3",
38+
"type": "choices",
39+
"value": {
40+
"choices": [
41+
"no"
42+
]
43+
},
44+
"origin": "manual",
45+
"to_name": "query",
46+
"from_name": "consistency"
47+
},
48+
{
49+
"id": "Yd_BW-pLht",
50+
"type": "choices",
51+
"value": {
52+
"choices": [
53+
"other"
54+
]
55+
},
56+
"origin": "manual",
57+
"to_name": "query",
58+
"from_name": "consistency_reason"
59+
},
60+
...
61+
]
62+
```
63+
64+
 
65+
In most cases, regions have a `from_name` field, which links to the control tag from your labeling config. Each region's `value` stores the control's response.
66+
 
67+
68+
# Building the filter
69+
70+
 
71+
As follows from annotation result understanding, our can identify your answers using a pair `(from_name, value)`
72+
 
73+
Based on the `annotation.result`, you can identify answers using a `(from_name, value)` pair. The `annotation.result` is stored as a JSON string in the Label Studio database, allowing us to search like a simple string. To construct a filter let's consider this region:
74+
75+
```
76+
{
77+
"id": "uh87CbF1k3",
78+
"type": "choices",
79+
"value": {
80+
"choices": ["no"]
81+
},
82+
"origin": "manual",
83+
"to_name": "query",
84+
"from_name": "consistency"
85+
}
86+
```
87+
88+
 
89+
90+
1. Keep only the part that has value and control tag name.
91+
2. Remove `\n` and spaces that surround `{` and `}`.
92+
93+
 
94+
As the result we have: 
95+
96+
```
97+
["no"]}, "origin": "manual", "to_name": "query", "from_name": "consistency"
98+
```
99+
100+
 
101+
102+
# Use the filter in the Data Manager
103+
104+
 
105+
Now, copy this filter into the **Data Manager.** Go to **Filter** → **Annotation Result** → **Contains** and paste `["no"]}, "origin": "manual", "to_name": "query", "from_name": "consistency"`:
106+
 
107+
![](https://labelstudio.zendesk.com/attachments/token/BDMVDE9r5o05xmlHxm66kCIJB/?name=image.png)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
author_id: 18127715992333
3+
category_id: 39646615083277
4+
created_at: '2024-01-30T01:22:16Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649206773773
9+
title: Audio wave doesn't match annotations
10+
updated_at: '2025-09-17T17:46:42Z'
11+
zendesk_article_id: 23638672221325
12+
---
13+
14+
If you find that after annotating audio data, the visible audio wave doesn’t match the timestamps and the sound, try converting the audio to a different format. For example, if you are annotating mp3 files, try converting them to wav files.
15+
16+
```
17+
ffmpeg -y -i audio.mp3 -ar 8k -ac 1 audio.wav
18+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
author_id: 16760288545421
3+
category_id: 39646615083277
4+
created_at: '2023-12-07T17:24:16Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649206773773
9+
title: 'How do I get all Choice items to render in a single line? '
10+
updated_at: '2025-09-17T17:46:20Z'
11+
zendesk_article_id: 22052885933325
12+
---
13+
14+
To display the choices in a single line, you can use the `showInline="true"` attribute within your `<Choices>` tag. This will render the choices horizontally instead of vertically. Here's how you can modify your existing `<Choices>` tag:
15+
16+
```
17+
<Choices name="is_useful" toName="item" required="true" showInline="true">
18+
<Choice value="yes"/>
19+
<Choice value="no"/>
20+
</Choices>
21+
```
22+
23+
By adding `showInline="true"`, the choices "yes" and "no" will be displayed in a single line, achieving the layout you're looking for.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
author_id: 16760288545421
3+
category_id: 39646615083277
4+
created_at: '2024-06-24T16:23:59Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649206773773
9+
title: How do I limit the max width of taxonomy fields?
10+
updated_at: '2025-09-17T17:45:28Z'
11+
zendesk_article_id: 27845825489677
12+
---
13+
14+
### Summary
15+
16+
This article provides guidance on using CSS adjustments to limit the maximum width of taxonomy fields in Label Studio. By setting the `maxWidth` attribute, users can control the width of taxonomy dropdowns to ensure that long texts do not overflow or cause layout issues. This is particularly useful for maintaining a clean and readable interface when dealing with extensive taxonomy options.
17+
18+
### Troubleshooting steps
19+
20+
1. **Identify the Taxonomy Field:** Locate the taxonomy field in your labeling interface configuration. It will look something like this:
21+
22+
```
23+
<Taxonomy name="media" toName="title" maxUsages="1" leafsOnly="true" />
24+
```
25+
2. **Add the `maxWidth` Attribute:** To limit the maximum width of the taxonomy field, add the `maxWidth` attribute with a desired value. For example, to set the maximum width to 300 pixels:
26+
27+
```
28+
<Taxonomy name="media" toName="title" maxUsages="1" leafsOnly="true" maxWidth="300px" />
29+
```
30+
3. **Adjust the Dropdown Width (if necessary):** If the dropdown list is too narrow, you can also set the `dropdownWidth` attribute to ensure it fits the content. For example, to set the dropdown width to 500 pixels:
31+
32+
```
33+
<Taxonomy name="media" toName="title" maxUsages="1" leafsOnly="true" maxWidth="300px" dropdownWidth="500" />
34+
```
35+
4. **Test the Changes:** Save your changes and reload the Label Studio interface to ensure that the taxonomy field and dropdown now adhere to the specified width constraints.
36+
5. **Fallback to Old Version (if needed):** If the new taxonomy settings do not meet your requirements, you can revert to the previous version by using the `legacy` attribute:
37+
38+
```
39+
<Taxonomy name="media" toName="title" legacy="true" />
40+
```
41+
42+
### More resources
43+
44+
- [Label Studio Taxonomy Tag Documentation](https://docs.humansignal.com/tags/taxonomy)
45+
46+
By following these steps, you can effectively manage the width of taxonomy fields in Label Studio, ensuring a better user experience and interface layout.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
author_id: 16760288545421
3+
category_id: 39646615083277
4+
created_at: '2024-06-17T16:38:33Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649206773773
9+
title: How to Display Long Texts in a Separate Static Text Field
10+
updated_at: '2025-09-17T17:44:43Z'
11+
zendesk_article_id: 27641232245517
12+
---
13+
14+
## Summary
15+
16+
This article provides a step-by-step guide on how to display long texts in a separate static text field within Label Studio. This approach helps prevent long texts from spreading outside the labeling interface and ensures that users can view the entire text without scrolling issues. Follow these troubleshooting steps to implement this solution effectively.
17+
18+
## Troubleshooting Steps
19+
20+
### Step 1: Modify the Labeling Configuration
21+
22+
To display long texts in a separate static text field, you need to adjust the labeling configuration in your project. Use the `<View>` and `<Text>` tags to create a static text field.
23+
24+
1. Open your project’s labeling configuration.
25+
2. Add a new `<View>` tag to wrap the text field.
26+
3. Use the `<Text>` tag to display the long text within the `<View>` tag.
27+
28+
```
29+
<View>
30+
<Header value="Please read the text" />
31+
<View style="height: 300px; overflow: auto;">
32+
<Text name="text" value="$longText" />
33+
</View>
34+
<Header value="Provide one sentence summary" />
35+
<TextArea name="answer" toName="text"
36+
showSubmitButton="true" maxSubmissions="1" editable="true"
37+
required="true" />
38+
</View>
39+
```
40+
41+
### Step 2: Apply CSS Styling
42+
43+
To ensure the text wraps correctly and does not overflow, apply CSS styling to the `<View>` tag. This will constrain the text sample to a specific height and make it easier to keep the text summary visible.
44+
45+
```
46+
<View style="height: 300px; overflow: auto;">
47+
<Text name="text" value="$longText" />
48+
</View>
49+
```
50+
51+
### Step 3: Test the Configuration
52+
53+
After modifying the labeling configuration, test it to ensure that the long text displays correctly within the static text field. Make sure the text wraps appropriately and does not cause any scrolling issues.
54+
55+
1. Save the changes to your labeling configuration.
56+
2. Open a task in your project to verify the display of the long text.
57+
3. Ensure that the text is fully visible and does not overflow the designated area.
58+
59+
## More Resources
60+
61+
For more information on customizing labeling configurations and using different tags in Label Studio, refer to the following resources:
62+
63+
- [Label Studio Tag Documentation](https://docs.humansignal.com/tags/)
64+
- [Text Summarization Template](https://docs.humansignal.com/templates/text_summarization)
65+
66+
By following these steps, you can effectively display long texts in a separate static text field, ensuring a better user experience for annotators.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
author_id: 16760288545421
3+
category_id: 39646615083277
4+
created_at: '2024-07-09T22:11:55Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649206773773
9+
title: How to ensure labeling interface settings are saved correctly
10+
updated_at: '2025-09-17T17:44:11Z'
11+
zendesk_article_id: 28278631494541
12+
---
13+
14+
**Summary:** This article provides steps to troubleshoot and resolve issues related to labeling interface settings not being saved correctly in Label Studio. Users often encounter problems where settings like "Show line numbers" and "Show region labels" revert to default options upon reentering the queue. Follow these steps to ensure your settings are retained.
15+
16+
**Troubleshooting Steps:**
17+
18+
1. **Clear Browser Cache:**
19+
20+
- Sometimes, browser cache can cause settings to revert. Clear your browser cache and cookies, then try setting your preferences again.
21+
2. **Verify User Permissions:**
22+
23+
- Ensure that you have the necessary permissions to change and save settings. Check with your administrator if you are unsure about your permission levels.
24+
3. **Save Settings Properly:**
25+
26+
- After adjusting your settings, make sure to click the "Save" button. Double-check that the settings are saved by navigating away from the page and returning to see if the changes persist.
27+
4. **Check for Conflicting Extensions:**
28+
29+
- Browser extensions can sometimes interfere with the functionality of web applications. Disable any extensions that might be causing conflicts and try saving your settings again.
30+
5. **Inspect Browser Console for Errors:**
31+
32+
- Open your browser's developer tools (usually by pressing F12 or right-clicking and selecting "Inspect") and check the console for any error messages when you try to save your settings. This can provide clues about what might be going wrong.
33+
6. **Reset to Default and Reconfigure:**
34+
35+
- If the issue persists, try resetting the settings to their default values and then reconfigure them. This can sometimes resolve issues caused by corrupted settings.
36+
7. **Contact Support:**
37+
38+
- If none of the above steps work, reach out to Label Studio support with detailed information about the issue, including any error messages from the browser console. They can provide further assistance and investigate the problem.
39+
40+
**More Resources:**
41+
42+
- [Label Studio Documentation](https://labelstud.io/guide/FAQ.html)
43+
- [HumanSignal Support Center](https://support.humansignal.com/hc/en-us)
44+
- [Label Studio GitHub Issues](https://github.com/HumanSignal/label-studio/issues)
45+
46+
By following these steps, you should be able to ensure that your labeling interface settings are saved correctly and persist across sessions. If you continue to experience issues, the provided resources and support channels can offer additional help.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
author_id: 15914823752205
3+
category_id: 39646615083277
4+
created_at: '2024-07-18T17:10:47Z'
5+
labels: []
6+
locale: en-us
7+
position: 0
8+
section_id: 39649206773773
9+
title: How to Use the Ranker Component
10+
updated_at: '2025-09-17T17:35:35Z'
11+
zendesk_article_id: 28531985845389
12+
---
13+
14+
**Summary**
15+
16+
The Ranker tag in Label Studio allows users to rank items in a list or distribute them into predefined buckets. This tag is particularly useful for tasks like evaluating LLM responses, sorting search results, or categorizing items based on relevance. The Ranker tag works in conjunction with the List tag and can be customized with various parameters and styles to fit specific project needs.
17+
18+
**Steps to Implement:**
19+
20+
1. **Ensure Proper Data Format:**
21+
- Verify that your task data is correctly formatted. The List tag should contain an array of objects with required fields like id, and optional fields like title, body, or html.
22+
23+
               Example data format:
24+
25+
```
26+
{
27+
"items":
28+
[
29+
{"id": "item1", "title": "Title 1", "body": "Body 1" },
30+
{"id": "item2", "title": "Title 2", "body": "Body 2" }
31+
]
32+
}
33+
```
34+
35+
1. **Correct Labeling Interface Configuration:**
36+
- Ensure that the Ranker tag is correctly connected to the List tag using the toName attribute.
37+
- Example configuration:
38+
39+
```
40+
<View>
41+
  <List name="results" value="$items"
42+
title="Search Results" />
43+
  <Ranker name="rank" toName="results">
44+
    <Bucket name="best"
45+
title="Best results" />
46+
    <Bucket name="ads"
47+
title="Paid results" />
48+
  </Ranker>
49+
</View>
50+
```
51+
52+
1. **Check for Browser Compatibility:**
53+
- If the Ranker component is not rendering, try using a different browser. Some users have reported issues with non-Chromium based browsers like Safari and Firefox.
54+
- Example issue: [GitHub Issue #995](https://github.com/HumanSignal/label-studio/issues/995)
55+
2. **Inspect Console for Errors:**
56+
- Open the browser's developer console to check for any errors that might indicate issues with the Ranker component.
57+
- Common errors might include missing or undefined properties.
58+
3. **Update to Latest Version:**
59+
- Ensure you are using the latest version of Label Studio, as updates often include bug fixes and improvements for components like Ranker.
60+
- Example: Users found that updating to the latest Docker image resolved issues with Ranker not loading.
61+
4. **Styling and Customization:**
62+
- Use the <Style> tag to customize the appearance of columns and items within the Ranker component.
63+
- Example styling:
64+
65+
```
66+
<Style>
67+
  .htx-ranker-column { background:
68+
cornflowerblue; }
69+
  .htx-ranker-item { background:
70+
lightgoldenrodyellow; }
71+
</Style>
72+
```
73+
74+
**More resources**
75+
76+
- [Ranker Tag Documentation](https://labelstud.io/tags/ranker.html)
77+
- [LLM Ranker Template](https://labelstud.io/templates/generative-llm-ranker.html)
78+
- [Label Studio GitHub Repository](https://github.com/HumanSignal/label-studio)
79+
- [Label Studio Blog: Five Large Language Models You Can Fine-Tune Today](https://labelstud.io/blog/five-large-language-models-you-can-fine-tune-today/)
80+
- [Label Studio Zero to One Tutorial](https://labelstud.io/blog/zero-to-one-getting-started-with-label-studio/)

0 commit comments

Comments
 (0)