quaterion.distances package


Module contents

class Distance(value)[source]

Bases: str, Enum

An enumerator to pass distance metric names across the package.

static get_by_name(name: str) BaseDistance[source]

A simple utility method to get the distance class by name.

You can pass a value from Distance enum or its string representation as an argument.

COSINE = 'cosine'
DOT_PRODUCT = 'dot_product'
EUCLIDEAN = 'euclidean'
MANHATTAN = 'manhattan'


Learn more about Qdrant vector search project and ecosystem

Discover Qdrant

Similarity Learning

Explore practical problem solving with Similarity Learning

Learn Similarity Learning


Find people dealing with similar problems and get answers to your questions

Join Community