community[patch], mongodb[patch]: Stop spamming SIMD import warnings (#19531)

If you use an embedding dist function in an eval loop, you get warned
every time. Would prefer to just check once and forget about it.

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
William FH 2024-03-27 20:11:02 -07:00 committed by GitHub
parent b04e663426
commit b7b62e29fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ def cosine_similarity(X: Matrix, Y: Matrix) -> np.ndarray:
return np.array([Z])
return np.array(Z)
except ImportError:
logger.info(
logger.debug(
"Unable to import simsimd, defaulting to NumPy implementation. If you want "
"to use simsimd please install with `pip install simsimd`."
)

View File

@ -40,7 +40,7 @@ def cosine_similarity(X: Matrix, Y: Matrix) -> np.ndarray:
return np.array([Z])
return np.array(Z)
except ImportError:
logger.info(
logger.debug(
"Unable to import simsimd, defaulting to NumPy implementation. If you want "
"to use simsimd please install with `pip install simsimd`."
)