public static boolean isTensorTypeThatSupportsHnswIndex(TensorType type) {
        // Tensors with 1 indexed dimension support hnsw index (used for approximate nearest neighbor search).
        var indexedSubtype = type.indexedSubtype();
        return (indexedSubtype.rank() == 1 && indexedSubtype.hasOnlyIndexedBoundDimensions());
    }
Returns whether the given tensor type supports using HNSW index and
nearest neighbor search.
config-model/src/main/java/com/yahoo/schema/processing/TensorFieldProcessor.java