Skip to content

fix(memory): pass embedding store to EntityResolver in extract_and_store#1827

Merged
bug-ops merged 1 commit intomainfrom
1817-amem-note-linking
Mar 15, 2026
Merged

fix(memory): pass embedding store to EntityResolver in extract_and_store#1827
bug-ops merged 1 commit intomainfrom
1817-amem-note-linking

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 15, 2026

Summary

  • EntityResolver in the production extract_and_store path was constructed without .with_embedding_store(), so store_entity_embedding() was never called — zeph_graph_entities stayed empty and link_memory_notes found no candidates, silently producing zero similar_to edges
  • Thread the optional Arc<EmbeddingStore> from spawn_graph_extraction into extract_and_store and wire it into EntityResolver construction, matching the pattern already used in test helpers
  • Call sites that intentionally have no embedding store (graph backfill in graph_commands, unit tests) pass None

Closes #1817

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace --features full -- -D warnings — zero warnings
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 5790 passed

EntityResolver was constructed without with_embedding_store() in the
production extract_and_store path, so store_entity_embedding() was never
called. As a result zeph_graph_entities stayed empty and link_memory_notes
found no similar entities, silently producing zero similar_to edges.

Thread the optional Arc<EmbeddingStore> from spawn_graph_extraction into
extract_and_store and wire it into EntityResolver construction, matching
the pattern already used in test helpers. Call sites that have no
embedding store (graph backfill in graph_commands, unit tests) pass None.

Closes #1817
@github-actions github-actions bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes core zeph-core crate bug Something isn't working size/S Small PR (11-50 lines) labels Mar 15, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 15, 2026 14:39
@bug-ops bug-ops merged commit aa5918b into main Mar 15, 2026
15 checks passed
@bug-ops bug-ops deleted the 1817-amem-note-linking branch March 15, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(memory): A-MEM note linking never creates edges due to missing entity embeddings

1 participant