From d11e7c6fc514b3c3e7e71be5f95b235b4b9055b6 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 24 Jun 2024 08:42:51 -0300 Subject: [PATCH] fix: run ruff --- .../base/langflow/components/vectorstores/Vectara.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/backend/base/langflow/components/vectorstores/Vectara.py b/src/backend/base/langflow/components/vectorstores/Vectara.py index 198baeb8d..6bbf479bf 100644 --- a/src/backend/base/langflow/components/vectorstores/Vectara.py +++ b/src/backend/base/langflow/components/vectorstores/Vectara.py @@ -5,12 +5,13 @@ from loguru import logger from langflow.base.vectorstores.model import LCVectorStoreComponent from langflow.helpers.data import docs_to_data -from langflow.io import HandleInput, IntInput, Output, SecretStrInput, StrInput, TextInput +from langflow.io import HandleInput, IntInput, SecretStrInput, StrInput, TextInput from langflow.schema import Data if TYPE_CHECKING: from langchain_community.vectorstores import Vectara + class VectaraVectorStoreComponent(LCVectorStoreComponent): """ Vectara Vector Store with search capabilities @@ -56,9 +57,7 @@ class VectaraVectorStoreComponent(LCVectorStoreComponent): try: from langchain_community.vectorstores import Vectara except ImportError: - raise ImportError( - "Could not import Vectara. Please install it with `pip install langchain-community`." - ) + raise ImportError("Could not import Vectara. Please install it with `pip install langchain-community`.") vectara = Vectara( vectara_customer_id=self.vectara_customer_id,