Skip to content

Commit

Permalink
fix: passage map negatives when len(p)==1 (AnswerDotAI#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
bclavie authored Jan 7, 2024
1 parent bf3260c commit 16d0a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ragatouille/data/training_data_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _make_individual_triplets(self, query, positives, negatives):
else:
p = self.passage_map[positives[0]]
for n in negatives:
triplets.append([q, p, n])
triplets.append([q, p, self.passage_map[n]])

return triplets

Expand Down

0 comments on commit 16d0a89

Please sign in to comment.