Skip to content

[geaflow/ai-memory] Define RetrievalMode contract #859

Description

@kitalkuyo-gita

Priority: P0
Difficulty: Starter

Context: GraphMemoryServer currently iterates over configured index stores. There is no explicit Basic, Vector, Graph, or Hybrid mode contract.

Scope:

  • Add enum or contract for BASIC, VECTOR, GRAPH, HYBRID.
  • Define required inputs, allowed indexes, and expected outputs for each mode.
  • Add tests that each mode can be selected explicitly.

Constraints:

  • Do not implement router ranking in this issue.
  • Do not change answer synthesis.

Acceptance Criteria:

  • Calling unsupported mode fails with typed error.
  • Mode selection is visible in retrieval trace.

Suggested paths:

  • geaflow-ai/src/main/java/org/apache/geaflow/ai/retrieval

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