Skip to content

Commit

Permalink
remove hooks from vector memory
Browse files Browse the repository at this point in the history
  • Loading branch information
pieroit committed Sep 4, 2023
1 parent 2ea5448 commit 1489630
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
41 changes: 0 additions & 41 deletions core/cat/mad_hatter/core_plugin/hooks/memory.py

This file was deleted.

3 changes: 0 additions & 3 deletions core/cat/memory/vector_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ def create_collection_if_not_exists(self):
# create collection
def create_collection(self):

self.cat.mad_hatter.execute_hook('before_collection_created', self)

log(f"Creating collection {self.collection_name} ...", "WARNING")
self.client.recreate_collection(
collection_name=self.collection_name,
Expand All @@ -174,7 +172,6 @@ def create_collection(self):
)
]
)
self.cat.mad_hatter.execute_hook('after_collection_created', self)

# retrieve similar memories from text
def recall_memories_from_text(self, text, metadata=None, k=5, threshold=None):
Expand Down

0 comments on commit 1489630

Please sign in to comment.