private Tensor evaluateEncoder(Tensor input, Tensor mask) {
        var encoderInputs = Map.of(
                encoderInputIdsName, input,
                encoderAttentionMaskName, mask
        );
        return encoder.evaluate(encoderInputs, encoderOutputName);
    }
Generates text by evaluating an encoder model to encode the prompt, and
repeatedly evaluating a decoding model to generate tokens until some
stopping criteria has been met.

@param prompt  the prompt to generate text from
@param options options for text generation
@return a text generated from the prompt
model-integration/src/main/java/ai/vespa/llm/clients/OnnxEncoderDecoder.java