langchain
d1bfb70b - community: Allow deleting by ID and collection in `pgvector` (#15627)

Commit
2 years ago
community: Allow deleting by ID and collection in `pgvector` (#15627) - **Description:** The `delete_collection` method deletes an entire collection regardless of custom ID. The `delete` method deletes everything with the provided custom IDs regardless of collection. It can be useful to restrict deletion to both the collection and a set of custom IDs. This change adds support for that by allowing you to optionally specify that `delete` should be restricted to the collection defined on the `PGVector` instance.
Author
Chad Norvell
Parents
Loading