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

fix: duplicate passage across/within files causing issues in insert_many with postgres #1205

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

nikhil-pandey
Copy link
Contributor

@nikhil-pandey nikhil-pandey commented Apr 1, 2024

Please describe the purpose of this pull request.
Bug Fix for #1197

How to test
Try to load two files that would chunk to same text. Both will produce the same embedding. Insert Many will fail because of constraint violation.

Have you tested this PR?
Yes

Related issues or PRs
Issue

@nikhil-pandey nikhil-pandey changed the title bug: fix duplicate passage across two files causing issues in insert_many bug: fix duplicate passage across two files causing issues in insert_many with postgres Apr 1, 2024
@nikhil-pandey nikhil-pandey changed the title bug: fix duplicate passage across two files causing issues in insert_many with postgres bug: fix duplicate passage across/within files causing issues in insert_many with postgres Apr 1, 2024
@nikhil-pandey nikhil-pandey changed the title bug: fix duplicate passage across/within files causing issues in insert_many with postgres fix: duplicate passage across/within files causing issues in insert_many with postgres Apr 1, 2024
Copy link
Collaborator

@sarahwooders sarahwooders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great thanks for the fix -- could you please fix the formatting issue poetry run black . -l 140?

Copy link
Collaborator

@sarahwooders sarahwooders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(requesting changes so we can fix formatting before merging)

@cpacker cpacker merged commit 5e7f586 into cpacker:main Apr 2, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants