Skip to content

Commit

Permalink
Merge pull request #21 from GsLogiMaker/patch-1
Browse files Browse the repository at this point in the history
Fix save function's memory_file argument not functioning properly
  • Loading branch information
vprelovac authored Jun 28, 2024
2 parents cb8457b + a070100 commit e39c4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vectordb/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def save(
self.memory.append(entry)

if memory_file is not None:
Storage(self.memory_file).save_to_disk([{"memory": self.memory, "metadata" :self.metadata_memory}])
Storage(memory_file).save_to_disk([{"memory": self.memory, "metadata" :self.metadata_memory}])

def search(
self, query: str, top_n: int = 5, unique: bool = False, batch_results: str = "flatten"
Expand Down

0 comments on commit e39c4cf

Please sign in to comment.