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

Favor upsert over add + use element_id to prevent duplicates #2926

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

0xjgv
Copy link

@0xjgv 0xjgv commented Apr 24, 2024

Make chroma ingest pipeline idempotent :)
@potter-potter

@potter-potter
Copy link
Contributor

@0xjgv Thanks for this! And thanks for alerting me. Great idea.

I will bring it up to the team.

@ahmetmeleq
Copy link
Contributor

Thanks for the PR! I do agree with the upsert.

I had doubts on assigning the element id, however based on the last state of id calculation, collisions don't seem to be likely. Looks good to me, needs to pass ingest tests.

@potter-potter
Copy link
Contributor

@ahmetmeleq @0xjgv can you see any downsides to doing it this way? (seems like it is a good idea all aound)

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

Successfully merging this pull request may close these issues.

None yet

3 participants