-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Hello, thank you for developing this great project!
I'm able to successfully run AutoSurvey in my environment, but encounter an error when running SurveyForce:
id_selector = faiss.IDSelectorArray(results_index)
TypeError: __init__() missing 1 required positional argument: 'ids'
Based on my current faiss version (faiss-gpu 1.7.2), the corresponding class definition shows that IDSelectorArray requires two arguments:
class IDSelectorArray(IDSelector):
# ... [docstring] ...
n = property(_swigfaiss.IDSelectorArray_n_get, _swigfaiss.IDSelectorArray_n_set)
ids = property(_swigfaiss.IDSelectorArray_ids_get, _swigfaiss.IDSelectorArray_ids_set)
def __init__(self, n, ids): # Requires two arguments: n and ids
_swigfaiss.IDSelectorArray_swiginit(self, _swigfaiss.new_IDSelectorArray(n, ids))This suggests a potential version compatibility issue. I attempted to modify the code to fix this specific error, but encountered additional faiss-related issues elsewhere, such as:
params = faiss.SearchParametersIVF(sel=kwargs.get("id_selector")))
AttributeError: module 'faiss' has no attribute 'SearchParametersIVF'
Given these multiple version-specific errors, could you please provide the complete recommended environment setup for SurveyForce?
This would greatly help in setting up the correct environment to run SurveyForce successfully. Thank you for your support!
Metadata
Metadata
Assignees
Labels
No labels