Skip to content

Add filter-based deletion to Oracle vector store #2130

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

Conversation

sobychacko
Copy link
Contributor

Add string-based filter deletion alongside the Filter.Expression-based deletion for Oracle vector store, providing consistent deletion capabilities with other vector store implementations.

Key changes:

  • Add delete(Filter.Expression) implementation using Oracle JSON_EXISTS
  • Leverage existing SqlJsonPathFilterExpressionConverter for JSON path expressions
  • Add comprehensive integration tests for filter deletion
  • Support both simple and complex filter expressions
  • Handle Oracle-specific JSON types in test assertions

This maintains consistency with other vector store implementations while utilizing Oracle's JSON path capabilities for efficient metadata-based deletion.

@sobychacko sobychacko added this to the 1.0.0-M6 milestone Jan 28, 2025
Add string-based filter deletion alongside the Filter.Expression-based deletion
for Oracle vector store, providing consistent deletion capabilities with
other vector store implementations.

Key changes:
- Add delete(Filter.Expression) implementation using Oracle JSON_EXISTS
- Leverage existing SqlJsonPathFilterExpressionConverter for JSON path expressions
- Add comprehensive integration tests for filter deletion
- Support both simple and complex filter expressions
- Handle Oracle-specific JSON types in test assertions

This maintains consistency with other vector store implementations while
utilizing Oracle's JSON path capabilities for efficient metadata-based deletion.

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
@sobychacko sobychacko force-pushed the filter-based-deletion-oracle branch from bffccfc to 241cc8b Compare January 28, 2025 00:20
@markpollack
Copy link
Member

merged in b30713e

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