def METHOD_NAME(vectors):
    if opts.is_l2:
        to_index = l2_convert_indexed_vectors(vectors, max_norm_sqrd)
    else:
        to_index = vectors
    if not opts.is_trained:
        index.train(to_index)
        opts.is_trained = True
    logger.info(f'calling index.add with {len(to_index)} vectors')
    index.add(to_index)