We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9abcfc8 commit 05005a9Copy full SHA for 05005a9
1 file changed
FlagEmbedding/finetune/embedder/decoder_only/icl/dataset.py
@@ -113,8 +113,8 @@ def _create_batch_data(self, batch_raw_data):
113
add_special_tokens=False,
114
)['input_ids']
115
)
116
- for i in range(len(tmp_passages)):
117
- tmp_passages[i] += self.args.icl_suffix_str
+ for j in range(len(tmp_passages)):
+ tmp_passages[j] += self.args.icl_suffix_str
118
else:
119
if self.args.passage_instruction_for_retrieval is not None:
120
tmp_passages = [
0 commit comments