Prev Next

AI / CrewAI Interview Questions II

Explain the internal working of CrewAI's memory system when memory=True is set?

flowchart LR A[Crew Created with memory=True] --> B[Default ShortTermMemory Instance] A --> C[Default LongTermMemory Instance] A --> D[Default EntityMemory Instance] B --> E[Shared Embedder Config Applied] D --> E E --> F[ChromaDB Vector Storage Backend]
  1. When a Crew is instantiated with memory=True, CrewAI automatically constructs default instances of ShortTermMemory, LongTermMemory, and EntityMemory rather than requiring each to be built manually
  2. The crew's embedder configuration is passed into the ShortTermMemory and EntityMemory constructors, since both rely on embeddings for similarity-based retrieval
  3. LongTermMemory is initialized without an embedder, since it isn't built around embedding-based similarity search the way the other two are
  4. ChromaDB serves as the default vector storage backend underlying this memory system, persisting the embedded data

This automatic wiring is what lets a single boolean flag produce a fully functioning three-tier memory system, while still leaving the door open to override any individual memory type with a custom instance when the defaults don't fit.

What three memory instances does memory=True automatically construct?
Which two memory types receive the crew's embedder configuration?

Invest now in Acorns!!! 🚀 Join Acorns and get your $5 bonus!
Acorns Logo

Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!

Earn passively and while sleeping

Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.

Robinhood Logo

Invest now!!! Get Free equity stock (US, UK only)!

Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.

The Robinhood app makes it easy to trade stocks, crypto and more.


Webull Logo

Webull! Receive free stock by signing up using the link: Webull signup.

More Related questions...

Show more question and Answers...

OpenClaw Interview Questions

Comments & Discussions