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

Allow same id for different collections #139

Open
mayrop opened this issue Nov 12, 2024 · 0 comments
Open

Allow same id for different collections #139

mayrop opened this issue Nov 12, 2024 · 0 comments

Comments

@mayrop
Copy link

mayrop commented Nov 12, 2024

It would be nice to have the ability to have the same ID for different collections. This would be useful for situations where, let's say I want to create embeddings for a table called books for 2 columns "short_title" and "title", referencing different collections but same ID (same book).

Current behavior is that even though the diff collection is added to the vectorstore, if the same id is provided, it will overwrite the entire row.

Primary key then would be the combination of id + collection_id.

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