mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
Allow same id for different collections #55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mayrop on GitHub (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.