Closed janfait closed 9 months ago
I was able to get it running in Docker so I assume it was related to my operating system. Closing
For anyone struggling here as @janfait: try to open() it as 'rb' , then it works for me just fine even in Windows 10 Pro without Docker (Python 3.9 at least)
with open('my_index.voy', 'rb') as f:
index = Index.load(f)
For anyone struggling here as @janfait: try to open() it as 'rb' , then it works for me just fine even in Windows 10 Pro without Docker (Python 3.9 at least)
with open('my_index.voy', 'rb') as f: index = Index.load(f)
very thanks
Hello, stuck with the below. Would appreciate any tips.
My vectors look like this:
Building and saving my index with this process works nicely.
The below data is returned from prints. All good.
[[ 884 556793 524883 662437 529508]] [[0. 0.0011078 0.00121032 0.00268939 0.00401055]]
When trying to read the index for later use with:
index = Index.load(index_path)
I get:
RuntimeError: Index seems to be corrupted or unsupported. Advancing to the next linked list requires 13312 additional bytes (from position 129997), but index data only has 130147 bytes in total.
It is not clear to me where to start with debugging. Do you have any tips on what could be wrong here?I am on Windows 10 Pro Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz, 2301 MHz Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32