Skip to content
Snippets Groups Projects
Unverified Commit 7d93b49f authored by Samuel MICHEL's avatar Samuel MICHEL Committed by GitHub
Browse files

Fix base.py (#11327)

parent cf289420
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class InstructorEmbedding(BaseEmbedding): ...@@ -54,7 +54,7 @@ class InstructorEmbedding(BaseEmbedding):
def _format_query_text(self, query_text: str) -> List[str]: def _format_query_text(self, query_text: str) -> List[str]:
"""Format query text.""" """Format query text."""
instruction = self.text_instruction instruction = self.query_instruction
if instruction is None: if instruction is None:
instruction = get_query_instruct_for_model_name(self.model_name) instruction = get_query_instruct_for_model_name(self.model_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment