Skip to content

[ISSUE-851] implemented VectorStore and VectorStoreMetadata interfaces with validation and persistence - #855

Open
Sumit2342 wants to merge 1 commit into
apache:masterfrom
Sumit2342:feature/issue-851-vector-store-spi
Open

[ISSUE-851] implemented VectorStore and VectorStoreMetadata interfaces with validation and persistence#855
Sumit2342 wants to merge 1 commit into
apache:masterfrom
Sumit2342:feature/issue-851-vector-store-spi

Conversation

@Sumit2342

Copy link
Copy Markdown

What changes were proposed in this pull request?

This PR addresses issue [#851 ] by defining the VectorStore SPI and VectorStoreMetadata contract for the geaflow-ai module.

Major changes include:

• Created the generic VectorStore interface to define standard vector operations (add, delete, search, init).
• Added VectorStoreMetadata with required fields (model_name, dimension, distance, index_version, created_at, format_version) and local fixture
persistence using Gson.
• Implemented strict metadata validation that throws IllegalArgumentException on dimension mismatch, missing metadata, or model
mismatch.

How was this PR tested?

[✓] Tests have Added for the changes
[ ] Production environment verified

Added the VectorStoreMetadataTest which systematically verifies:

• Saving and loading the metadata to/from the JSON local fixture.
• Exception throwing when required fields are missing during validation.
• Exception throwing when testing against dimension or model mismatches.

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.

1 participant