langchain_community.vectorstores.lantern
.DistanceStrategy¶
- class langchain_community.vectorstores.lantern.DistanceStrategy(value)[source]¶
距离策略枚举器。
- 欧几里得距离 = 'l2sq'¶
- 余弦距离 = 'cosine'¶
- 汉明距离 = 'hamming'¶