mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

adding same document multiple times should reject that in search level

Open munjalmukul opened this issue 1 year ago • 2 comments

🚀 The feature

How Its Working Currently Right now If I am adding same document twice its first searching memories and then updating, adding or deleting memory.

How It Should be There should be a layer at embedding search level so it reject the duplicate document to save llm cost.

Motivation, pitch

There are times when duplicate documents are uploaded by user so I dont want to send that document to llm so cost can be saved.

munjalmukul avatar Aug 22 '24 07:08 munjalmukul

@Dev-Khant I am working on this enhancement, can you assign me this this issue? Looking forward to share the PR soon.

NavyaAlapati13 avatar Aug 28 '24 11:08 NavyaAlapati13

Sure @NavyaAlapati13, Thanks for working on it.

Dev-Khant avatar Aug 28 '24 13:08 Dev-Khant

Closing the issue since this is fixed now.

deshraj avatar Jul 04 '25 04:07 deshraj