Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clustering & Minor Patches in JS, Rust, & Java SDKs #503

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ashvardanian
Copy link
Contributor

No description provided.

CCnut and others added 6 commits September 29, 2024 15:52
The return value of index.count() was a boolean, so it was changed to a number.
For example, if you try to add the same key, it aborts.

```
terminate called after throwing an instance of 'std::runtime_error'
  what():  Duplicate keys not allowed in high-level wrappers
Aborted (core dumped)
```

Improved error handling to throw JavaScript exceptions.
@ashvardanian ashvardanian changed the title JS, Rust, and Java Patches Clustering & Minor Patches in JS, Rust, & Java SDKs Oct 10, 2024
I got an error when I loaded and searched with load() or view().

Code Example:

```js
// Saved with `index.save('index.usearch');` in another script.
index.load('index.usearch');
const results = index.search(new Float32Array([0.2, 0.6, 0.4]), 10);
```
@ashvardanian
Copy link
Contributor Author

@abetomo, the last PR seems to break the CI. Any ideas, why?

@abetomo
Copy link
Contributor

abetomo commented Oct 12, 2024

abetomo and others added 5 commits October 14, 2024 03:19
The test itself succeeds, but fails with the following error when deleting the index file created by save() in afterEach().

```
error: "EBUSY: resource busy or locked, unlink 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\usearch.test.index'"
```

Since it is only in Winodws that it fails, we will skip it on Winodws for now.
We will continue to investigate the solution.
Add Rust and Android CI build
The index read by `view()` is read-only.
When I did a `remove()` on that index, it crashed.

---------

Co-authored-by: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>
---------

Co-authored-by: Mikhail Bautin <mbautin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants