private static void validateName(Map<String, TensorType> types, String name, String type) {
        if (!types.containsKey(name)) {
            throw new IllegalArgumentException("Model does not contain required " + type + ": '" + name + "'. " +
                                               "Model contains: " + String.join(",", types.keySet()));
        }
    }
A ColBERT embedder implementation that maps text to multiple vectors, one vector per token subword id.
This embedder uses a HuggingFace tokenizer to produce a token sequence that is then input to a transformer model.

See col-bert-embedder.def for configurable parameters.

@author bergum
model-integration/src/main/java/ai/vespa/embedding/ColBertEmbedder.java