langchain_community.vectorstores.pgvector.DistanceStrategy¶

class langchain_community.vectorstores.pgvector.DistanceStrategy(value)[source]¶

Enumerator of the Distance strategies.

EUCLIDEAN = 'l2'¶
COSINE = 'cosine'¶
MAX_INNER_PRODUCT = 'inner'¶

Examples using DistanceStrategy¶