Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During memory retrieval, filter similar memories #36

Open
Interpause opened this issue May 15, 2023 · 1 comment
Open

During memory retrieval, filter similar memories #36

Interpause opened this issue May 15, 2023 · 1 comment

Comments

@Interpause
Copy link

Over time, duplicate memories may enter the system. This makes retrieval less diverse as it will end up retrieving multiple copies of the same memory, just worded differently. It is possible to use cosine similarity between retrieved memories to filter out duplicates, then try and retrieve additional memories that arent duplicates. Optionally, memories could be randomly sampled both on the cosine similarity to add diversity to the retrieval?

@Anvil-Late
Copy link

Or we could make it so that if an input is too cosine-similar to a memory, it is not added to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants