AI / CrewAI Interview Questions
What is the difference between memory=True and providing explicit memory instances?
| memory=True | Explicit memory instances |
| Automatically initializes default Short-Term, Long-Term, and Entity memory | Developer manually constructs and configures specific memory instances |
| Uses the crew's shared embedder configuration for supported memory types | Allows different storage backends or settings per memory type |
| Fastest way to get standard memory behavior working | Needed when integrating External Memory or custom storage backends |
| Good default for most use cases | Necessary when default ChromaDB-backed storage doesn't fit the deployment |
The boolean shortcut covers the common case well, while explicit instance injection is there specifically for teams that need to bypass the defaults for one or more memory types.
More Related questions...