Skip to content

Conversation

@sobychacko
Copy link
Contributor

Implement filter-based deletion for CassandraVectorStore to support more
flexible document removal based on metadata filters.

Key changes:

- Add doDelete(Filter.Expression) implementation
- Implement workaround for Cassandra's limitations in direct filtered deletion
- Fetch matching documents first, then delete by IDs
- Add integration tests for various filter deletion scenarios
- Support simple and complex filter expressions
- Includes tests for:
  * Deleting by simple equality filter
  * Deleting by string-based filter expression * Deleting by complex AND filter expression

Provides consistent deletion capabilities across vector store implementations while addressing Cassandra-specific constraints.

    Implement filter-based deletion for CassandraVectorStore to support more
    flexible document removal based on metadata filters.

    Key changes:

    - Add doDelete(Filter.Expression) implementation
    - Implement workaround for Cassandra's limitations in direct filtered deletion
    - Fetch matching documents first, then delete by IDs
    - Add integration tests for various filter deletion scenarios
    - Support simple and complex filter expressions
    - Includes tests for:
      * Deleting by simple equality filter
      * Deleting by string-based filter expression
      * Deleting by complex AND filter expression

    Provides consistent deletion capabilities across vector store implementations
    while addressing Cassandra-specific constraints.

Signed-off-by: Soby Chacko <[email protected]>
@sobychacko sobychacko added this to the 1.0.0-M6 milestone Jan 29, 2025
@markpollack markpollack self-assigned this Jan 29, 2025
@markpollack markpollack merged commit b9549d5 into spring-projects:main Jan 29, 2025
2 checks passed
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.

2 participants