Skip to content

Commit

Permalink
fix: fix add documents to the load store
Browse files Browse the repository at this point in the history
  • Loading branch information
eloycoto committed Oct 30, 2024
1 parent 8a98b9e commit f7a4003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ def save(self):
self._vector_store.save_local(folder_path=self.path)

def add_documents(self, docs: [str]):
return self._vector_store.add_documents(docs)
return self.vectordb.add_documents(docs)

@property
def vectordb(self):
if not self.initialized:
self._initialize()
return self._vector_store

@property
Expand Down

0 comments on commit f7a4003

Please sign in to comment.