Skip to content

Conversation

@sobychacko
Copy link
Contributor

Add string-based filter deletion alongside the Filter.Expression-based deletion for Pinecone vector store and improve test organization through refactoring.

Key changes:

  • Add delete(Filter.Expression) implementation using two-step process:
    • Search for documents matching filter
    • Delete matching documents by ID
  • Leverage existing search functionality to maintain filter consistency
  • Extract common test patterns into helper methods
  • Create reusable document factory methods for test data
  • Add comprehensive integration tests for filter deletion
  • Standardize test cleanup and verification patterns

This maintains consistency with other vector store implementations while working within Pinecone's API limitations. The test refactoring improves maintainability and makes the test patterns clearer and more consistent.

Add string-based filter deletion alongside the Filter.Expression-based deletion
for Pinecone vector store and improve test organization through refactoring.

Key changes:
- Add delete(Filter.Expression) implementation using two-step process:
  * Search for documents matching filter
  * Delete matching documents by ID
- Leverage existing search functionality to maintain filter consistency
- Extract common test patterns into helper methods
- Create reusable document factory methods for test data
- Add comprehensive integration tests for filter deletion
- Standardize test cleanup and verification patterns

This maintains consistency with other vector store implementations while
working within Pinecone's API limitations. The test refactoring improves
maintainability and makes the test patterns clearer and more consistent.

Signed-off-by: Soby Chacko <[email protected]>
@sobychacko sobychacko added this to the 1.0.0-M6 milestone Jan 28, 2025
@markpollack markpollack self-assigned this Jan 29, 2025
@markpollack markpollack merged commit bd52786 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