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:
Christophe Bornet
2024-08-23 16:41:39 +02:00
committed by GitHub
parent 642f9530cd
commit 7f1e444efa
18 changed files with 1163 additions and 470 deletions

View File

@@ -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)