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

text unit sources are not deduplicated #1467

Open
volksen opened this issue Dec 4, 2024 · 1 comment
Open

text unit sources are not deduplicated #1467

volksen opened this issue Dec 4, 2024 · 1 comment

Comments

@volksen
Copy link
Contributor

volksen commented Dec 4, 2024

Hello,

when creating the text unit sources in the LocalSearchMixedContext, the sources are not deduplicated:

While there is a text_unit_ids_set in the code, it is never used:
Line 335 of mixed_context.py

I fixed it by adding:
text_unit_ids_set.add(text_id)

in line 337.

@volksen
Copy link
Contributor Author

volksen commented Dec 4, 2024

tried to create a PR for the issue: #1468
My first PR, please be kind :)

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

1 participant