Skip to content

feat: re-embed existing memories when changing embedding model #743

@chriscoey

Description

@chriscoey

When switching embedding models (e.g., local nomic-embed-text 768d → OpenAI text-embedding-3-large 3072d), the extracted facts and entities are still valid — only the vectors need recomputing.

Currently the only option is to clear the DB and re-retain everything, which re-runs LLM extraction unnecessarily.

A reindex-embeddings command (CLI or API) that recomputes vectors from stored memory text using the current embedding config would make model upgrades cheap.

Related: #738 (vector extension per-bank), #385 (embedding quantization)

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