Skip to main content
Euclidean distance measures straight-line distance between points. It is well suited for image embeddings and spatial data where the absolute distance between vectors represents meaningful differences.
Before you begin, make sure you have a running VectorAI DB instance. The SDK references this metric as Distance.Euclid.
This example creates a collection named image_embeddings configured to use Euclidean distance.
To confirm the collection was created successfully, call client.collections.get_info("image_embeddings") and check that the status field returns Ready.