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 ed58e7aa08f2ea87e5bb4be410ea7bb4cfc652dc..e2b351e1ed2489fb2490195b375e106f49aa99d8 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)