Skip to content

Commit

Permalink
return store when calling faiss_store write
Browse files Browse the repository at this point in the history
  • Loading branch information
seehi committed Jul 28, 2023
1 parent 8cc8b80 commit b1dda7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metagpt/document_store/faiss_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def write(self):

self.store = self._write(docs, metadatas)
self.persist()
return self.store

def add(self, texts: list[str], *args, **kwargs) -> list[str]:
"""FIXME: 目前add之后没有更新store"""
Expand Down

0 comments on commit b1dda7c

Please sign in to comment.