private IndexedTensor createTensorRepresentation(List<Long> input, String dimension) {
        int size = input.size();
        TensorType type = new TensorType.Builder(TensorType.Value.FLOAT).indexed(dimension, size).build();
        IndexedTensor.Builder builder = IndexedTensor.Builder.of(type);
        for (int i = 0; i < size; ++i) {
            builder.cell(input.get(i), i);
        }
        return builder.build();
    }
Evaluate the embedding model if the result is not present in the context cache.

@param context the context accompanying the request
@param text the text that is embedded
@return the model output
model-integration/src/main/java/ai/vespa/embedding/ColBertEmbedder.java