Skip to content

feat(db): add VectorStore capability aware routing #563

@ohdearquant

Description

@ohdearquant

Body:

  • Problem: callers currently have to infer vector backend support for filters, batch search, quantization, updates, orphan sweep, and multi-field storage. ADR-044 says capability introspection and filtered search are needed, while the sqlite-vec capability struct reports unsupported features at crates/khive-db/src/stores/vectors.rs:558.
  • Proposed fix: add a backend capability routing layer that callers can use before issuing vector operations, and update retrieval/memory paths to route filtered and maintenance work based on declared capabilities rather than backend-specific assumptions.
  • Acceptance criteria: capability checks are covered by unit tests; at least one retrieval path chooses pushdown or fallback based on capabilities; unsupported operations return a stable typed error; docs explain how new backends advertise support.
  • Affected crates/ADRs: docs/adr/ADR-044-vector-store-extensions.md:20, docs/adr/ADR-044-vector-store-extensions.md:28, crates/khive-db/src/stores/vectors.rs:558, crates/khive-db/src/stores/vectors.rs:561.

Source: khive-improvement-survey show — proposed backlog (propose-only synthesis). Dedup: NEW.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions