Autocomplete to display results only after 3 characters are entered and not before

Hello,

Running a magento 2 store and got algolia working.
Just need some guidance to ensure we can the autocomplete box only after 3 characters are entered in our search box and not before because it’s too early to provide results after 1-2 characters based on our products/categories.

We were provided this link: Front-End Custom Events | Magento 2 | Algolia Documentation