Skip to main content
Dot product measures both alignment and magnitude. For pre-normalized embeddings, it produces the same results as cosine similarity with better computational performance. Check your embedding model’s documentation to confirm whether its output vectors are normalized before choosing this metric. The following example creates a collection named normalized_embeddings configured to use dot product as its distance metric.
To confirm the collection was created successfully, call client.collections.get_info("normalized_embeddings") and check that the status field returns Ready.