From e2598b26f618b0e87b9d8188b1cdaa798bc08469 Mon Sep 17 00:00:00 2001 From: anindyam1969 Date: Tue, 13 Feb 2024 11:59:11 +0530 Subject: [PATCH] Formatted with ruff --- .../community/langchain_community/vectorstores/kinetica.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/community/langchain_community/vectorstores/kinetica.py b/libs/community/langchain_community/vectorstores/kinetica.py index 2164c20d1370f..e52fb75e0de1c 100644 --- a/libs/community/langchain_community/vectorstores/kinetica.py +++ b/libs/community/langchain_community/vectorstores/kinetica.py @@ -125,7 +125,6 @@ class Kinetica(VectorStore): ) """ - def __init__( self, config: KineticaSettings, @@ -794,13 +793,13 @@ def from_texts( if len(texts) == 0: raise ValueError("texts is empty") - + try: first_embedding = embedding.embed_documents(texts[0:1]) except NotImplementedError: first_embedding = [embedding.embed_query(texts[0])] - dimensions= len(first_embedding[0]) + dimensions = len(first_embedding[0]) embeddings = embedding.embed_documents(list(texts)) kinetica_store = cls.__from( @@ -816,7 +815,7 @@ def from_texts( pre_delete_collection=pre_delete_collection, **kwargs, ) - + return kinetica_store @classmethod