From 7d93b49ff98f4bdd8c6a4a61d49c40618a36e0a1 Mon Sep 17 00:00:00 2001
From: Samuel MICHEL <74212431+mchlsam@users.noreply.github.com>
Date: Fri, 23 Feb 2024 18:47:42 +0100
Subject: [PATCH] Fix base.py (#11327)

---
 .../llama_index/embeddings/instructor/base.py                   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/base.py b/llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/base.py
index ed58e7aa08..e2b351e1ed 100644
--- a/llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/base.py
+++ b/llama-index-integrations/embeddings/llama-index-embeddings-instructor/llama_index/embeddings/instructor/base.py
@@ -54,7 +54,7 @@ class InstructorEmbedding(BaseEmbedding):
 
     def _format_query_text(self, query_text: str) -> List[str]:
         """Format query text."""
-        instruction = self.text_instruction
+        instruction = self.query_instruction
 
         if instruction is None:
             instruction = get_query_instruct_for_model_name(self.model_name)
-- 
GitLab