unum-cloud / usearch

Fast Open-Source Search & Clustering engine × for Vectors & 🔜 Strings × in C++, C, Python, JavaScript, Rust, Java, Objective-C, Swift, C#, GoLang, and Wolfram 🔍
https://unum-cloud.github.io/usearch/
Apache License 2.0
2.28k stars 143 forks source link

Bug: C# Loading usearch file exception #345

Closed ErwanL08 closed 9 months ago

ErwanL08 commented 10 months ago

Describe the bug

Hi first thing this lib is awesome thank you for this work .

I writting an application console that embedded a list of sentence with fasttext. the result give me a FLoat[] of 300D. At the end i m saving the result in a specific path. image If i do a search on the index it s working fine.

In a other function i try to loaded the saved index model and launch a search on it : image and i have this exception : image

Do i miss something ?

Steps to reproduce

image image

Expected behavior

no exception

USearch version

2.8.16

Operating System

windows 11

Hardware architecture

x86

Which interface are you using?

Other bindings

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

gebirgslok commented 9 months ago

I'm facing the same Error / Exception. Everything works perfect including SaveIndex(), but after loading from file every call to Search throws this exception

ashvardanian commented 9 months ago

Interesting. @ErwanL08 and @gebirgslok can you suggest a Pull Request extending the tests with a minimal case that can be used to reproduced the bug? I can try patching it then.

gebirgslok commented 9 months ago

Interesting. @ErwanL08 and @gebirgslok can you suggest a Pull Request extending the tests with a minimal case that can be used to reproduced the bug? I can try patching it then.

Sure, i'll give it a try.

BR Jens

Geekyvk5 commented 9 months ago

Same issue, works until the save, but while loading the saved file throws an exception in C#.

ashvardanian commented 9 months ago

@Geekyvk5 , @gebirgslok , and @ErwanL08, I've just pushed v2.9.1 which seems to fix the issue. Please let me know if you still encounter it 🤗

ErwanL08 commented 9 months ago

hi @ashvardanian thank you the bug is fix 👍