diff --git a/src/backend/langflow/components/vectorstores/Chroma.py b/src/backend/langflow/components/vectorstores/Chroma.py index 4f51b64d9..bf1273c43 100644 --- a/src/backend/langflow/components/vectorstores/Chroma.py +++ b/src/backend/langflow/components/vectorstores/Chroma.py @@ -96,9 +96,7 @@ class ChromaComponent(CustomComponent): # If documents, then we need to create a Chroma instance using .from_documents if documents is not None and embedding is not None: if len(documents) == 0: - raise ValueError( - "If documents are provided, there must be at" " least one document. Got {len(documents)}." - ) + raise ValueError("If documents are provided, there must be at least one document.") return Chroma.from_documents( documents=documents, # type: ignore persist_directory=persist_directory if persist else None,