mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
partners: Use simsimd types (#25299)
The simsimd package [now has types](https://github.com/ashvardanian/SimSIMD/releases/tag/v5.0.0)
This commit is contained in:
committed by
GitHub
parent
642f9530cd
commit
7f1e444efa
@@ -52,7 +52,7 @@ def cosine_similarity(X: Matrix, Y: Matrix) -> np.ndarray:
|
||||
f"and Y has shape {Y.shape}."
|
||||
)
|
||||
try:
|
||||
import simsimd as simd # type: ignore
|
||||
import simsimd as simd
|
||||
|
||||
X = np.array(X, dtype=np.float32)
|
||||
Y = np.array(Y, dtype=np.float32)
|
||||
|
Reference in New Issue
Block a user