0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

fix(@mastra/core, @mastra/memory): allow explicitly disabling vector store (#3529)

Before this, even with semantic recall disabled, the default vector
store and embedder would be attached to the memory instance.
This PR allows Memory to have no vector/embedder by turning off semantic
recall or by setting vector to false

```ts
new Memory({
  vector: false,
  // or
  options: { semanticRecall: false }
})
```

We'll be changing the defaults anyway but this should help short term by
allowing folks to fully opt-out of vector/embedding with Memory. Long
term with new defaults this will still be useful because when we set
`semanticRecall: false` in the new defaults, this logic will make sure
no default vector store is attached.
This commit is contained in:
Tyler Barnes 2025-04-09 11:52:39 -07:00 • committed by GitHub
commit 359b0898ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 55 additions and 18 deletions