Skip to content

Optional derived vector index #49

Description

@valiantone

Summary

Add an optional derived vector index for HotMem retrieval acceleration.

The vector index may use Chroma or a similar local backend, but it must remain disposable and rebuildable. SQLite/files/bundles/manifests remain canonical.

Related OKF docs

Related vNext issues

Goal

Provide optional vector acceleration while preserving HotMem's filesystem-first architecture.

Scope

  • Add opt-in index configuration.
  • Rebuild index from SQLite and file/bundle references.
  • Search falls back to deterministic local retrieval if the index is missing.
  • Index metadata records source hashes or rebuild markers.
  • Document that the vector index is not canonical storage.

Acceptance criteria

  • HotMem runs with no vector backend installed.
  • Index can be rebuilt from canonical storage.
  • Search fallback works when the index is absent or stale.
  • Index loss does not lose memory.
  • Tests prove default behavior remains unchanged.

Out of scope

  • Mandatory Chroma dependency.
  • Canonical vector DB architecture.
  • Remote vector services.

Priority

P1 after file-backed memory, bundle discovery, and hydration profile semantics are stable.

TECH-11 execution requirements

Full execution plan: TECH-11.

Additional scope

  • Support building, rebuilding, and clearing the index from canonical memory records.
  • Make index staleness, missing dependencies, and rebuild state observable.
  • Preserve the default response shape and ranking contract when acceleration is enabled or absent.
  • Index file-backed content from eligible inline summaries/metadata by default; never eagerly load large backing files.
  • File-backed and bundle-backed memories preserve lazy content-read rules.

Required tests

  • Core operation without an optional vector package installed.
  • Rebuild parity and stale-index handling.
  • Search compatibility golden tests from Compatibility golden tests for file-native evolution #54.
  • Proof that large referenced files are not eagerly read for indexing.
  • Deterministic fallback-search behavior.

Activity

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

Metadata

Metadata

Assignees

Labels

area:storageStorage adapter abstraction + filesystem adaptersv0.2.xHotMem post-v0.2 follow-up work

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions