From ad15e25d9a43b070c5754114a847a49c3a95e6d0 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 14 Feb 2024 18:43:17 +0100 Subject: [PATCH] too much renaming :-) --- .../embedding_backend/instructor_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py b/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py index ba7ac093a..717534aba 100644 --- a/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py +++ b/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py @@ -33,7 +33,7 @@ class _InstructorEmbeddingBackend: def __init__(self, model: str, device: Optional[str] = None, token: Optional[Secret] = None): self.model = INSTRUCTOR( - model=model, + model_name_or_path=model, device=device, use_auth_token=token.resolve_value() if token else None, )