mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
d01bad5169
This patch fixes the #18022 issue, converting the SimSIMD internal zero-copy outputs to NumPy. I've also noticed, that oftentimes `dtype=np.float32` conversion is used before passing to SimSIMD. Which numeric types do LangChain users generally care about? We support `float64`, `float32`, `float16`, and `int8` for cosine distances and `float16` seems reasonable for practically any kind of embeddings and any modern piece of hardware, so we can change that part as well 🤗 |
||
---|---|---|
.. | ||
__init__.py | ||
cache.py | ||
chat_message_histories.py | ||
py.typed | ||
utils.py | ||
vectorstores.py |