server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java
+ index
                            + "];"
                    );
                    break;
                }
            }
            if (errorBuilder != null) {
                throw new IllegalArgumentException(appendErrorElements(errorBuilder, vector).toString());
            }
        }
        StringBuilder appendErrorElements(StringBuilder errorBuilder, float[] vector) {
            
            errorBuilder.append(" Preview of invalid vector: [");
            for (int i = 0; i < Math.min(5, vector.length); i++) {
                if (i > 0) {
                    errorBuilder.append(", ");
                }
                errorBuilder.append(vector[i]);
            }
            if (vector.length >= 5) {
                errorBuilder.append(", ...");
            }
            errorBuilder.append("]");
            return errorBuilder;
        }
        StringBuilder appendErrorElements(StringBuilder errorBuilder, byte[] vector) {
            
            errorBuilder.append(" Preview of invalid vector: [");
            for (int i = 0; i < Math.min(5, vector.length); i++) {
                if (i > 0) {