Skip to content

Commit ef51aeb

Browse files
committed
update embedder
1 parent cd03820 commit ef51aeb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

FlagEmbedding/abc/inference/AbsEmbedder.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ def encode(
167167
instruction_format: Optional[str] = None,
168168
**kwargs: Any
169169
):
170-
if instruction is None: instruction = self.instruction
171-
if instruction_format is None: instruction_format = self.instruction_format
172170
if batch_size is None: batch_size = self.batch_size
173171
if max_length is None: max_length = self.passage_max_length
174172
if convert_to_numpy is None: convert_to_numpy = self.convert_to_numpy

0 commit comments

Comments
 (0)