You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
unexpected keyword argument 'embedding_model' error occurred in passage filter module such as SimilarityThresholdCutoff._pure()
To Reproduce
set embedding_model of similarity_threshold_cutoff in config.yaml
Run autorag
Expected behavior
Succeed
Full Error log
TypeError: SimilarityThresholdCutoff._pure() got an unexpected keyword argument 'embedding_model'
Code that bug is happened
After init cls instance, embedding_model key must be popped from kwargs. But kwargs in BaseModule and SimilarityThresholdCutoff have different id like deep copy.
Describe the bug
unexpected keyword argument 'embedding_model' error occurred in passage filter module such as
SimilarityThresholdCutoff._pure()
To Reproduce
embedding_model
ofsimilarity_threshold_cutoff
in config.yamlExpected behavior
Succeed
Full Error log
TypeError: SimilarityThresholdCutoff._pure() got an unexpected keyword argument 'embedding_model'
Code that bug is happened
After init
cls
instance,embedding_model
key must be popped fromkwargs
. Butkwargs
inBaseModule
andSimilarityThresholdCutoff
have different id like deep copy.The text was updated successfully, but these errors were encountered: