a1.createEmbedding(elemInputA.value);
        console.log({embdA});
        const embdB = await wllama1.createEmbedding(elemInputB.value);
        console.log({embdB});
        // since embeddings are normalized, we don't need to calculate norm
        const dotProd = embdA.reduce((acc, _, i) => acc + embdA[i]*embdB[i], 0);
        elemOutputEmbd.textContent = dotProd;
        setEmbdDisable(false);
      };
    }

    /////////////////////////////////////////////////////////////////////

    // DOM element