Skip to content

fix(memos-local-plugin): infer embedding dimensions for rebuilds#1682

Merged
hijzy merged 1 commit into
MemTensor:mem-agent-0509from
hijzy:cursor/embedding-maintenance
May 12, 2026
Merged

fix(memos-local-plugin): infer embedding dimensions for rebuilds#1682
hijzy merged 1 commit into
MemTensor:mem-agent-0509from
hijzy:cursor/embedding-maintenance

Conversation

@hijzy
Copy link
Copy Markdown
Collaborator

@hijzy hijzy commented May 12, 2026

Summary

  • Add embedding maintenance endpoints and viewer controls to repair missing/mismatched vectors or rebuild all vectors after imports/model changes.
  • Infer remote embedding dimensions from provider responses instead of exposing dimensions as user config, preventing bge-m3 vectors from being truncated to 384.
  • Aggregate multiple explicit feedback corrections in heuristic reward fallback so later negative feedback can lower trace value and priority.

Test plan

  • npm run lint
  • npm test -- tests/unit/config/load.test.ts tests/unit/config/writer.test.ts tests/unit/embedding/normalize.test.ts
  • npm test -- tests/unit/reward/human-scorer.test.ts tests/unit/pipeline/memory-core.test.ts -t "heuristic|submitFeedback aggregates|repairs missing"
  • npm test -- tests/unit/pipeline/memory-core.test.ts tests/unit/reward/human-scorer.test.ts tests/unit/server/http.test.ts tests/unit/bridge/methods.test.ts
  • npm run build:viewer
  • npm pack --json

Add embedding maintenance APIs and viewer controls so imported memories and model changes can repair or rebuild vectors against the active provider. Treat remote embedding dimensions as provider-derived state, not user config, and aggregate explicit feedback corrections consistently.
@hijzy hijzy merged commit 9e7b542 into MemTensor:mem-agent-0509 May 12, 2026
syzsunshine219 added a commit that referenced this pull request May 12, 2026
## Summary

Merge `mem-agent-0509` line of work into the new integration branch
`mem-agent-0512`.

This is part of the 0512 integration: the 0512 branch is freshly cut
from `main`, and we are landing the 0509 + 0509-magent work plus the
latest bug fix on top of it so we can release `2.0.0-beta.13`.

## What's included from mem-agent-0509

Notable items beyond `main`:
- feat: enhance memos-local-plugin Windows installation experience
(#1684)
- fix(memos-local-plugin): infer embedding dimensions for rebuilds
(#1682)
- fix(memos-local-plugin): improve Windows bridge launch (#1706)
- fix(memos-local-plugin): close v2 ARMS telemetry coverage gaps (#1690)
- fix(memos-local-plugin): preserve OpenClaw memory context (#1686)
- fix: ghost overview memory (#1707)
- fix: fix namespace (#1709)
- fix: The reward score is always negative. (#1710)

## Test plan

- [ ] CI green on the merge commit
- [ ] Downstream regression suite (after PRs #2/#3 land and the
2.0.0-beta.13 deploy)

Made with [Cursor](https://cursor.com)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant