Implemented batch_size for autocomplete