Toggle Menu
Prev Up Next

# `langchain_community.vectorstores.lantern`.DistanceStrategy

class langchain_community.vectorstores.lantern.DistanceStrategy(value)

  Enumerator of the Distance strategies.

  EUCLIDEAN = 'l2sq'
  COSINE = 'cosine'
  HAMMING = 'hamming'

# Examples using DistanceStrategy

- # Automatically restart kernel after installs so that your environment can access the new packages

- Create collection if running for the first time. If the collection

- Pip install necessary package