-
Notifications
You must be signed in to change notification settings - Fork 71
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
No embeddings found in folder #198
Comments
[UPDATE] Digging into dependant libraries source code, I have found that the error is raied by the class `NumpyReader`:
"""Numpy reader class, implements init to read the files headers and call to procuce embeddings batches"""
def __init__(self, embeddings_folder):
self.embeddings_folder = embeddings_folder
self.fs, embeddings_file_paths = get_file_list(embeddings_folder, "npy")
headers = get_numpy_headers(embeddings_file_paths, self.fs)
self.headers = pd.DataFrame(
headers,
columns=["filename", "count", "count_before", "dimension", "dtype", "header_offset", "byte_per_item"],
)
self.count = self.headers["count"].sum()
if self.count == 0:
raise ValueError(f"No embeddings found in folder {embeddings_folder}") # <--- this error |
This was referenced Mar 21, 2024
Fixed downgrading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using
autofaiss==2.15.8
. I get the errorNo embeddings found in folder
when callingbuild_index
:Here I use the
embeddings
parameters that according to the docs may contain a path or the object (numpy array), and in the code above I'm using the latter approach, that according to the source ofbuild_index
hereshould creare a file within the
tmp_dir_embeddings
, that afterwards causes the errorthere I assume the
tmp_dir_embeddings
is the one specified in the error,/tmp/tmpnt82l_ms
, while the instance type is ofnp.ndarray
.The text was updated successfully, but these errors were encountered: