Skip to content

Voyager: Corrupted or unsupported index after saving. #68

@uelca

Description

@uelca

Issue Description:

I encountered an error when trying to load an index created using Voyager as the backend on a Windows system. The error message displayed is: "Corrupted or unsupported index."

Steps to Reproduce:

Create an index using Voyager as the backend.
Save the index.
Attempt to load the index on a Windows system.

Expected Behavior:
The index should load without any errors.

Actual Behavior:
The system throws an error stating "Corrupted or unsupported index."

Reference:

This issue is known and has been documented in the Voyager repository: GitHub Issue #40.

Resolution:

To resolve the issue, you can modify the load method in the voyager.py file. Follow these steps:

Navigate to the Vicinity directory within your virtual environment.
Locate the file vicinity/backend/voyager.py.
Modify the load method as follows:

with open(path, 'rb') as f:
index = Index.load(f)

This will fix the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions