mirror of https://github.com/hwchase17/langchain
Fix SingleStoreDB (#10534)
After the refactoring #6570, the DistanceStrategy class was moved to another module and this introduced a bug into the SingleStoreDB vector store, as the `DistanceStrategy.EUCLEDIAN_DISTANCE` started to convert into the 'DistanceStrategy.EUCLEDIAN_DISTANCE' string, instead of just 'EUCLEDIAN_DISTANCE' (same for 'DOT_PRODUCT'). In this change, I check the type of the parameter and use `.name` attribute to get the correct object's name. --------- Co-authored-by: Volodymyr Tkachuk <vtkachuk-ua@singlestore.com>pull/10560/head
parent
f9636b6cd2
commit
a43abf24e4
Loading…
Reference in New Issue