# Reranker- change batch size?

**URL:** <https://forum.weaviate.io/t/reranker-change-batch-size/1185>\
**Category:** Support\
**Created:** [January 8, 2024, 6:54pm UTC](https://forum.weaviate.io/t/reranker-change-batch-size/1185 "2024-01-08T18:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjsteele](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@mjsteele](https://forum.weaviate.io/u/mjsteele)\
**Post date:** [January 8, 2024, 6:54pm UTC](https://forum.weaviate.io/t/reranker-change-batch-size/1185/1 "2024-01-08T18:54:35Z")

</div>

I have a custom reranker integrated with weaviate, it is awesome 🙂 I was wondering if it is possible to change the number of documents sent to the reranker at once? It looks like it sends 32 documents at a time even if I set my search to a limit \> 32. I can handle many more so it would improve search speed if this was configurable.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [January 8, 2024, 7:13pm UTC](https://forum.weaviate.io/t/reranker-change-batch-size/1185/2 "2024-01-08T19:13:50Z")

</div>

Hi @mjsteele!

Are using the transformers-reranker?

[it seems it have a 32 documents limit hard coded](https://github.com/weaviate/weaviate/blob/master/modules/reranker-transformers/clients/ranker.go#L46C3-L46C15)

That’s an interesting feature that would bring more flexibility.  
Could you please open a [feature request at our Github here](https://github.com/weaviate/weaviate/issues/new/choose)?

For now, a workaround would be forking this module, and building as a new, custom one, setting the limits you want. I know, not ideal 😦

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![mjsteele](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@mjsteele](https://forum.weaviate.io/u/mjsteele)\
**Post date:** [January 8, 2024, 8:40pm UTC](https://forum.weaviate.io/t/reranker-change-batch-size/1185/3 "2024-01-08T20:40:30Z")

</div>

I have added a feature request, thanks!
