fix: run ruff
This commit is contained in:
parent
783475e50d
commit
d11e7c6fc5
1 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue