added dotenv in .toml, added an example to use qdrant, fixed the code in main.py (#1653)

This commit is contained in:
rajib
2024-08-14 10:48:24 -07:00
committed by GitHub
parent 214a1ddca5
commit e35786e567
2 changed files with 41 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ class Memory(MemoryBase):
self.vector_store = VectorStoreFactory.create(self.config.vector_store.provider, self.config.vector_store.config)
self.llm = LlmFactory.create(self.config.llm.provider, self.config.llm.config)
self.db = SQLiteManager(self.config.history_db_path)
self.collection_name = self.config.vector_store.config.collection_name if "collection_name" in self.config.vector_store.config else "mem0"
self.collection_name = self.config.vector_store.config.collection_name
capture_event("mem0.init", self)