mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
feat: remove error print
This commit is contained in:
parent
2b522ffccb
commit
8b84e269a1
1 changed files with 1 additions and 5 deletions
|
|
@ -37,11 +37,7 @@ class FaissStore(LocalStore):
|
|||
return FAISS.load_local(self.raw_data_path.parent, self.embedding, self.fname)
|
||||
|
||||
def _write(self, docs, metadatas):
|
||||
try:
|
||||
store = FAISS.from_texts(docs, self.embedding, metadatas=metadatas)
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to write. error: {e}")
|
||||
raise e
|
||||
store = FAISS.from_texts(docs, self.embedding, metadatas=metadatas)
|
||||
return store
|
||||
|
||||
def persist(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue