Skip to content

[geaflow/ai-memory] Define VectorStore SPI with model metadata #851

Description

@kitalkuyo-gita

Priority: P0
Difficulty: Intermediate

Context: EmbeddingIndexStore stores embeddings for GraphEntity in JSONL and memory map. Phase 1 needs a generic vector store contract for both chunks and graph entities.

Scope:

  • Add VectorStore interface.
  • Define metadata fields: model_name, dimension, distance, index_version, created_at, format_version.
  • Add tests for dimension mismatch, missing metadata, and model mismatch.

Constraints:

  • Do not implement ANN in this issue.
  • Do not break existing EmbeddingIndexStore behavior.

Acceptance Criteria:

  • Loading vectors with wrong dimension fails closed.
  • Metadata is persisted in local fixture format.

Suggested paths:

  • geaflow-ai/src/main/java/org/apache/geaflow/ai/index/vectorstore

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions