@SuppressWarnings("unchecked")
    private Tensor embedArrayValue(TensorType targetType, ExecutionContext context) {
        var input = (Array<StringFieldValue>)context.getCurrentValue();
        var builder = Tensor.Builder.of(targetType);
        if (targetType.rank() == 2)
            if (targetType.indexedSubtype().rank() == 1)
                embedArrayValueToRank2Tensor(input, builder, context);
            else if(targetType.mappedSubtype().rank() == 2)
                embedArrayValueToRank2MappedTensor(input, builder, context);
            else
                throw new IllegalArgumentException("Embedding an array into " + targetType + " is not supported");
        else
            embedArrayValueToRank3Tensor(input, builder, context);
        return builder.build();
    }
@return the requested embedder id. This will diverge from the selected embedder's id when executed in config-model
indexinglanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/EmbedExpression.java