Skip to content

Conversation

@sobychacko
Copy link
Contributor

…plementations.

@sobychacko sobychacko added this to the 1.0.0-M6 milestone Feb 10, 2025
This commit extracts shared delete operation tests into a reusable BaseVectorStoreTests class.
This reduces code duplication and provides a consistent test suite for delete operations across
different vector store implementations. The base class includes tests for:

Deleting by ID
Deleting by filter expressions
Deleting by string filter expressions

Most of the vector store implementation now extends this base class and inherits these
common tests while maintaining the ability to add vector store specific tests.

Signed-off-by: Soby Chacko <[email protected]>
@sobychacko sobychacko force-pushed the vec-store-delete-integ-tests branch from 71e0e36 to 92cc3b7 Compare February 12, 2025 01:19
@ilayaperumalg ilayaperumalg self-assigned this Feb 12, 2025
Copy link
Member

@ilayaperumalg ilayaperumalg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactoring to the vector store ITs!

*/
public abstract class BaseVectorStoreTests {

protected abstract void executeTest(Consumer<VectorStore> testFunction);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A javadoc here on what to expect for the implementations would be helpful

Signed-off-by: Soby Chacko <[email protected]>
@ilayaperumalg
Copy link
Member

Rebased, squashed and merged as 4d692a5

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