Re-embed memories when embeddingModel changes vector size
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
Direção de pesquisa
Read DESIGN.md sections “Search and bootstrap” and “One vector space” to understand the stated constraints. Then locate the Memory model, embedding option reload handling, and vector index setup; the issue does not name their files or tests. Done means existing rows are re-embedded with the configured model and a dimension-changing reload is handled safely.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
embeddingModel can be changed in the plugin options, but rows already embedded by the previous model are not re-embedded. Harper's HNSW index fixes its vector size at the first vector, so a model with a different size:
- leaves new and revised rows out of the vector index (Harper skips them with a warning);
- makes vector queries fail, so search falls back to full-text only and logs it once per model;
- keeps rows written under the mismatched model out of the vector lane even after the option is reverted, until each is revised.
Nothing rejects or warns about the change when the options reload. Same-size model switches are handled: the vector lane only compares rows tagged with the configured embeddingModel, and older rows stay reachable through full-text.
Proposed
A migration that re-embeds every Memory row with the configured model, rebuilding the vector index when its size changes, plus a check that refuses (or warns about) a dimension-changing reload until the migration runs.
Refs: the v0 core PR (DESIGN.md "Search and bootstrap", "One vector space").
Review-Deferral: 6ceee23de50a8167 severity=minor category=reliability
🤖 Generated by Claude Opus 5.5 (Claude Code); posted via @kriszyp.
- Linguagem predominante
- JavaScript
- Estrelas
- 0
- Forks
- 0
- Merge médio
- 20h 29min
- PRs com merge (30d)
- 28
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de HarperFast/agent-memory
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
HarperFast/agent-memory#17 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 18/100
HarperFast/agent-memory#54 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
HarperFast/agent-memory#53 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 52/100
HarperFast/agent-memory#48 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
HarperFast/agent-memory#47 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de HarperFast/agent-memory
Issues semelhantes
-
入群码过期Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
aliyun/ai-agent-handbook#29 · 1 comentário ·
-
docs documentation need-triage SaaS
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
apache/cloudstack#14719 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia