Skip to content

K-Means Clustering

K-Means clustering for vector embeddings (not database clustering).

📚 Documentation

🎯 What is K-Means Clustering?

K-Means clustering groups similar vectors together, enabling: - Faster approximate search - Data organization - Anomaly detection - Dimensionality reduction

🚀 Quick Start

// Create clusters from embeddings
CALL nornicdb.cluster.kmeans({
  k: 10,
  maxIterations: 100,
  tolerance: 0.001
})
YIELD clusterId, centroid, size
RETURN clusterId, size

📖 Learn More


Get started → K-Means Algorithm