mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix: Fix unused exception variable in FaissStore.
This commit is contained in:
@@ -21,8 +21,8 @@ class FaissStore(BaseVectorStore):
|
||||
self.docsearch = FAISS.from_documents(docs_init, embeddings)
|
||||
else:
|
||||
self.docsearch = FAISS.load_local(self.path, embeddings, allow_dangerous_deserialization=True)
|
||||
except Exception as e:
|
||||
raise
|
||||
except Exception:
|
||||
raise # Just re-raise the exception without assigning to e
|
||||
|
||||
self.assert_embedding_dimensions(embeddings)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user