From e73636bef3cea2212a91aa9755b275c2ba764ad5 Mon Sep 17 00:00:00 2001 From: asoderlind Date: Mon, 16 Oct 2023 11:22:42 +0200 Subject: [PATCH] remove trailing whitespace, sort imports, remove unused arguments --- application/vectorstore/faiss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/vectorstore/faiss.py b/application/vectorstore/faiss.py index 653484c4..e8960fe0 100644 --- a/application/vectorstore/faiss.py +++ b/application/vectorstore/faiss.py @@ -1,5 +1,5 @@ -from application.vectorstore.base import BaseVectorStore from langchain.vectorstores import FAISS +from application.vectorstore.base import BaseVectorStore from application.core.settings import settings class FaissStore(BaseVectorStore): @@ -23,11 +23,11 @@ class FaissStore(BaseVectorStore): def add_texts(self, *args, **kwargs): return self.docsearch.add_texts(*args, **kwargs) - + def save_local(self, *args, **kwargs): return self.docsearch.save_local(*args, **kwargs) - def assert_embedding_dimensions(self, embeddings, *args, **kwargs): + def assert_embedding_dimensions(self, embeddings): """ Check that the word embedding dimension of the docsearch index matches the dimension of the word embeddings used