Skip to content

Commit

Permalink
Bump simsimd from 3.7.7 to 3.8.1 (#114)
Browse files Browse the repository at this point in the history
Bumps [simsimd](https://github.com/ashvardanian/simsimd) from 3.7.7 to
3.8.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/ashvardanian/simsimd/releases">simsimd's
releases</a>.</em></p>
<blockquote>
<h2>v3.8.1</h2>
<h2><a
href="https://github.com/ashvardanian/SimSIMD/compare/v3.8.0...v3.8.1">3.8.1</a>
(2024-02-22)</h2>
<h3>Docs</h3>
<ul>
<li>Reorg contribution guide (<a
href="https://github.com/ashvardanian/SimSIMD/commit/e8be593cebd70f50781f9d5e7780cb5701302ecb">e8be593</a>)</li>
</ul>
<h3>Fix</h3>
<ul>
<li>Detect tests running in QEMU (<a
href="https://github.com/ashvardanian/SimSIMD/commit/80b9fecfd1a1c8377b79cb1c302186a263ef6a41">80b9fec</a>)</li>
<li>Numerical issues (<a
href="https://github.com/ashvardanian/SimSIMD/commit/cdd7516196f9b9e6c14dcb78a855fec6090fedf0">cdd7516</a>)</li>
<li>NumPy and SciPy issues with PyPy (<a
href="https://github.com/ashvardanian/SimSIMD/commit/9bd4ada6f88d1329f1422ead4294f24868884d1d">9bd4ada</a>)</li>
</ul>
<h3>Improve</h3>
<ul>
<li>Accurate tail math on Aarch64 (<a
href="https://github.com/ashvardanian/SimSIMD/commit/5b39a8e0a03d73af39163c4ea8d76d824838b508">5b39a8e</a>)</li>
<li>Accurate tail math with AVX2 (<a
href="https://github.com/ashvardanian/SimSIMD/commit/f61d5be29d1d9307d8d2315b4b064b8f3a4e34f7">f61d5be</a>)</li>
<li>Drop NumPy dependency (<a
href="https://github.com/ashvardanian/SimSIMD/commit/819a40666faf038613b2368d1810e2563fb9d422">819a406</a>)</li>
<li>Rust bench performance and style (<a
href="https://redirect.github.com/ashvardanian/simsimd/issues/85">#85</a>)
(<a
href="https://github.com/ashvardanian/SimSIMD/commit/da6214663ac494e1e5330f567dff9be47e9248ef">da62146</a>),
closes <a
href="https://redirect.github.com/ashvardanian/SimSIMD/issues/85">#85</a></li>
<li>Test and ship w/out NumPy and SciPy (<a
href="https://github.com/ashvardanian/SimSIMD/commit/5b800d3776702098ee102c93226525bc5f09580e">5b800d3</a>)</li>
</ul>
<h3>Make</h3>
<ul>
<li>cibuildwheel for manylinux2014 (<a
href="https://redirect.github.com/ashvardanian/simsimd/issues/87">#87</a>)
(<a
href="https://github.com/ashvardanian/SimSIMD/commit/43cdc9a288801dd2044480e4f7978ea99a444aae">43cdc9a</a>),
closes <a
href="https://redirect.github.com/ashvardanian/SimSIMD/issues/87">#87</a>
<a
href="https://redirect.github.com/ashvardanian/SimSIMD/issues/86">#86</a>
<a
href="https://redirect.github.com/ashvardanian/SimSIMD/issues/72">#72</a></li>
<li>Clean-up CI (<a
href="https://github.com/ashvardanian/SimSIMD/commit/af895ace3ead9c7c2123a748e3941b2cd7279264">af895ac</a>)</li>
<li>Extend PyPi builds to all archs (<a
href="https://github.com/ashvardanian/SimSIMD/commit/5b3e3c91191a49d6511a5713762045fae57989b1">5b3e3c9</a>)</li>
<li>Faster CI (<a
href="https://github.com/ashvardanian/SimSIMD/commit/568f8068bc8ef03f150c5349be30ae0172d9d7bf">568f806</a>)</li>
<li>Patching toolchains (<a
href="https://github.com/ashvardanian/SimSIMD/commit/edb064d7072716d448bbfd4b0a2c6b8f2cebc521">edb064d</a>)</li>
<li>Upgrade NodeJS (<a
href="https://github.com/ashvardanian/SimSIMD/commit/3e3ed04f4e4808a877caa2d0189f313d1410293f">3e3ed04</a>)</li>
<li>Wheels w/out <code>f16</code> requirements (<a
href="https://github.com/ashvardanian/SimSIMD/commit/5e58966f2d9dab93c65457b55b31e5fa37d4cd52">5e58966</a>)</li>
</ul>
<h2>v3.8.0</h2>
<h1><a
href="https://github.com/ashvardanian/SimSIMD/compare/v3.7.7...v3.8.0">3.8.0</a>
(2024-02-13)</h1>
<h3>Add</h3>
<ul>
<li><code>enable/disable_capability</code> in Python (<a
href="https://github.com/ashvardanian/SimSIMD/commit/c7e90f91d69be7dbe4ccf25c49e9c192c95f60d2">c7e90f9</a>),
closes <a
href="https://redirect.github.com/ashvardanian/SimSIMD/issues/68">#68</a></li>
</ul>
<h3>Improve</h3>
<ul>
<li>Reuse caps in Rust and C standard compliance (<a
href="https://github.com/ashvardanian/SimSIMD/commit/aa164f646da3743df32ced5c54640ef359b7a8a6">aa164f6</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/a721c2cd582c688473475303b3cd722fdaa84b55"><code>a721c2c</code></a>
Build: Released 3.8.1 [skip ci]</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/41e3d1077196c56111545bf8cec95876f715d2f7"><code>41e3d10</code></a>
Merge pull request <a
href="https://redirect.github.com/ashvardanian/simsimd/issues/88">#88</a>
from ashvardanian/main-dev</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/568f8068bc8ef03f150c5349be30ae0172d9d7bf"><code>568f806</code></a>
Make: Faster CI</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/80b9fecfd1a1c8377b79cb1c302186a263ef6a41"><code>80b9fec</code></a>
Fix: Detect tests running in QEMU</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/cdd7516196f9b9e6c14dcb78a855fec6090fedf0"><code>cdd7516</code></a>
Fix: Numerical issues</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/3e3ed04f4e4808a877caa2d0189f313d1410293f"><code>3e3ed04</code></a>
Make: Upgrade NodeJS</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/f61d5be29d1d9307d8d2315b4b064b8f3a4e34f7"><code>f61d5be</code></a>
Improve: Accurate tail math with AVX2</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/5b39a8e0a03d73af39163c4ea8d76d824838b508"><code>5b39a8e</code></a>
Improve: Accurate tail math on Aarch64</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/edb064d7072716d448bbfd4b0a2c6b8f2cebc521"><code>edb064d</code></a>
Make: Patching toolchains</li>
<li><a
href="https://github.com/ashvardanian/SimSIMD/commit/9bd4ada6f88d1329f1422ead4294f24868884d1d"><code>9bd4ada</code></a>
Fix: NumPy and SciPy issues with PyPy</li>
<li>Additional commits viewable in <a
href="https://github.com/ashvardanian/simsimd/compare/v3.7.7...v3.8.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=simsimd&package-manager=pip&previous-version=3.7.7&new-version=3.8.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: hsm207 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shukri <[email protected]>
  • Loading branch information
dependabot[bot] and hsm207 authored Mar 25, 2024
1 parent 153828f commit e2984f4
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 30 deletions.
4 changes: 2 additions & 2 deletions langchain_weaviate/_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import List, Optional, Tuple, Union

import numpy as np
import simsimd as simd
import simsimd

logger = logging.getLogger(__name__)

Expand All @@ -26,7 +26,7 @@ def cosine_similarity(X: Matrix, Y: Matrix) -> np.ndarray:

X = np.array(X, dtype=np.float32)
Y = np.array(Y, dtype=np.float32)
Z = 1 - simd.cdist(X, Y, metric="cosine")
Z = 1 - np.array(simsimd.cdist(X, Y, metric="cosine"))
if isinstance(Z, float):
return np.array([Z])
return Z
Expand Down
Loading

0 comments on commit e2984f4

Please sign in to comment.