# Same examples being shown to different annotators

**URL:** <https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973>\
**Category:** Uncategorized\
**Tags:** usage, to-be-released, streams\
**Created:** [November 18, 2021, 11:39pm UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973 "2021-11-18T23:39:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hg2021](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hg2021](https://support.prodi.gy/u/hg2021)\
**Post date:** [November 18, 2021, 11:39pm UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/1 "2021-11-18T23:39:10Z")

</div>

Hi,

I am having an issue with using multi user sessions. I am getting the same examples being given to two different users in the same order. Even after one user annotates, moves to the next one, and saves, the other user is still seeing the same example upon reloading the page (but I do see the the total annotations increase for both users after saving).

This is the command I run to start the annotations on dummy data...  
python -m prodigy textcat.manual dummy\_dataset .\Desktop\dummy\_text.txt --label A,B

I set the allowed users env variable (PRODIGY\_ALLOWED\_SESSIONS=alex,bob) and this is how I open the two users on seperate tabs...  
localhost:8080/?session=alex  
localhost:8080/?session=bob

This is my prodigy.json. I have had tried exclude\_by set to "task" and force\_stream\_order to false with the same results...  
{  
"theme": "basic",  
"feed\_overlap": false,  
"exclude\_by": "input",  
"force\_stream\_order":true  
}

What might be wrong here? I think I have looked through other posts on this issue and tried all those suggestions with no success.

Also, two specific questions about multi user sessions-

1. When feed\_overlap is false, does user1 have to save their annotation for user2 to not see it or should they just never be shown the same examples?
2. If they do have to save it or if multiple tabs are open under the same user, is there a way to shuffle on the front end so the chance of overlap is less and can at least be corrected more easily if it does happen?

Please let me know. Thank you!

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://support.prodi.gy/u/kab)\
**Post date:** [November 18, 2021, 11:52pm UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/2 "2021-11-18T23:52:23Z")

</div>

Hi! How many examples are in your dummy\_text.txt file? If it's really short, there's a mechanism in Prodigy where unannotated examples in 1 user's session will be queued into another user's session if there are no more new examples available. The goal being to ensure 1 user can't queue up examples, never annotate them, and have those examples be totally lost.

---

<div class="post-metadata">

**Author:** ![hg2021](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hg2021](https://support.prodi.gy/u/hg2021)\
**Post date:** [November 18, 2021, 11:56pm UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/3 "2021-11-18T23:56:03Z")

</div>

About 10 examples. I have tried with 5-15 examples with the same results. As I step through the examples in each tab, it looks like each user gets every example. How many should I have so this doesn't happen?

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://support.prodi.gy/u/kab)\
**Post date:** [November 18, 2021, 11:57pm UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/4 "2021-11-18T23:57:22Z")

</div>

batch\_size \* 2 should do it (of unique examples). So 20 if you're using the default batch\_size of 10. You can also set a smaller batch\_size in your prodigy.json

---

<div class="post-metadata">

**Author:** ![hg2021](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hg2021](https://support.prodi.gy/u/hg2021)\
**Post date:** [November 19, 2021, 12:11am UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/5 "2021-11-19T00:11:17Z")

</div>

I put in 22 examples with batch\_size of 10 on a new dataset and still get the same issue. It's shuffled now, but when user1 annotates and saves, user2 still eventually comes to the example that was already annotated by user1. Even after reloading the page for user2.

The weird thing is that when user2 reloads, I can see total annotations go up on user2's end, but user2 still ends up seeing them.

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://support.prodi.gy/u/kab)\
**Post date:** [November 19, 2021, 12:14am UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/6 "2021-11-19T00:14:39Z")

</div>

To confirm, what version of Prodigy are you using? I'll see if I can reproduce.

---

<div class="post-metadata">

**Author:** ![hg2021](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hg2021](https://support.prodi.gy/u/hg2021)\
**Post date:** [November 19, 2021, 12:17am UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/7 "2021-11-19T00:17:49Z")

</div>

Version 1.11.5

---

<div class="post-metadata">

**Author:** ![kab](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kab](https://support.prodi.gy/u/kab)\
**Post date:** [November 19, 2021, 4:19am UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/8 "2021-11-19T04:19:25Z")

</div>

Alright I see the issue you're running into and it's something we've identified before. It's important to note this situation will only really come up in the last (batch\_size \* n\_annotators) just since you have a small number of examples, the first 20 examples is also the last 20.

Prodigy is designed this way under the principle that we'd rather you get an example annotated twice than not at all. That being said, I'll add a small improvement for the next release that should reduce the number of duplicates you would see (especially in a test scenario like this one).

---

<div class="post-metadata">

**Author:** ![hg2021](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hg2021](https://support.prodi.gy/u/hg2021)\
**Post date:** [November 19, 2021, 3:22pm UTC](https://support.prodi.gy/t/same-examples-being-shown-to-different-annotators/4973/9 "2021-11-19T15:22:40Z")

</div>

I see. Thank you! This will work fine for our actual dataset.

Also, I noticed something else which won't really be a problem for us, but wanted to bring it up: I set batch size to 5 and created a dummy txt of numbers 1-42 and open two named sessions alternating back and forth between them labeling, but not saving any examples. I noticed the last 2 batches do overlap as you say, but by the time it says no more examples it skips one of the batches. I tried this twice and noticed it. Strangely, total annotations shows as 42 at the end even though I know one batch of 5 was skipped.

Perhaps an issue on my end and again, not really a problem for us, but just wanted to let you know.

Thank you again for your help.
