MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / create

Method create

methods/mem0/utils/factory.py:98–106  ·  view source on GitHub ↗
(cls, provider_name, config)

Source from the content-addressed store, hash-verified

96
97 @classmethod
98 def create(cls, provider_name, config):
99 class_type = cls.provider_to_class.get(provider_name)
100 if class_type:
101 if not isinstance(config, dict):
102 config = config.model_dump()
103 vector_store_instance = load_class(class_type)
104 return vector_store_instance(**config)
105 else:
106 raise ValueError(f"Unsupported VectorStore provider: {provider_name}")

Callers

nothing calls this directly

Calls 3

load_classFunction · 0.85
getMethod · 0.45
model_dumpMethod · 0.45

Tested by

no test coverage detected