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:
parent
e1fd177022
commit
359b0898ca
4 changed files with 55 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue