Create Chroma Memory Adapter • AI Agent SDK
create_chroma_memory_adapter: Factory function to create ChromaDB memory adapter.
create_chroma_memory_adapter
Function
</div>
This function is defined in the factories module.
Factory function to create ChromaDB memory adapter.
Lazy imports chromadb and creates an adapter that implements MemoryProtocol using ChromaDB as the vector store backend.
Signature
def create_chroma_memory_adapter() -> MemoryProtocolReturns
ResponseField
MemoryProtocolMemoryProtocol adapter instance
Exceptions
ImportError
If chromadb is not installed
Uses
ImportErrorChromaMemoryAdapter
Source
View on GitHubpraisonaiagents/memory/adapters/factories.py at line 94