mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-18 05:24:22 +01:00
11 lines
304 B
Python
11 lines
304 B
Python
from providers.pinecone import PineconeMemory
|
|
from providers.weaviate import WeaviateMemory
|
|
|
|
class MemoryFactory:
|
|
@staticmethod
|
|
def get_memory(mem_type):
|
|
if mem_type == 'pinecone':
|
|
return PineconeMemory()
|
|
|
|
if mem_type == 'weaviate':
|
|
return WeaviateMemory() |