Skip to content

Commit

Permalink
🚧 fix(wip): strict duplicates testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Mar 21, 2024
1 parent 23abe3a commit d255c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magnet/ize/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ async def is_dupe(self, q: str = None):
output_fields=['text', 'document'],
limit=1
)
return True if match and match[0] and match[0][0].distance >= 0.99 else False
return True if match and match[0] and match[0][0].distance == 1 else False

0 comments on commit d255c01

Please sign in to comment.