From 428a7dc23de515ba652aaa5aa682659725908af3 Mon Sep 17 00:00:00 2001 From: Shreya Hegde <106897123+shreyahegde18@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:48:29 +0530 Subject: [PATCH] fix: TypeError wrt Instructor-Large (#35) ### With the changes I made, `$ codeqai search` ### worked just fine with "**Instructor-Large**" embedding model Closes #34 --- codeqai/embeddings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeqai/embeddings.py b/codeqai/embeddings.py index 5be8637..1a94681 100644 --- a/codeqai/embeddings.py +++ b/codeqai/embeddings.py @@ -39,7 +39,7 @@ def __init__( except ImportError: self._install_instructor_embedding() - self.embeddings = HuggingFaceInstructEmbeddings() + self.embeddings = HuggingFaceEmbeddings() def _install_sentence_transformers(self): question = [