BGE-M3 Sparse Vector creation

Hi,
does anyone know how to generate “sparse” vectors for which the BGE-M3 model is perfect for? I assume that the api returns only dense vectors.

Thank you in advance.