From 8d4aae479c12018e96845fb7f701b9052686eebe Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 10 Nov 2023 09:07:45 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(pgvector.py):=20improve=20er?= =?UTF-8?q?ror=20message=20when=20failing=20to=20build=20PGVector=20compon?= =?UTF-8?q?ent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error message when failing to build the PGVector component was not clear and did not provide useful information. This commit changes the error message to be more descriptive and concise, providing only the relevant information about the failure. --- src/backend/langflow/components/vectorstores/pgvector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/components/vectorstores/pgvector.py b/src/backend/langflow/components/vectorstores/pgvector.py index d539fe289..e57b31a79 100644 --- a/src/backend/langflow/components/vectorstores/pgvector.py +++ b/src/backend/langflow/components/vectorstores/pgvector.py @@ -66,4 +66,4 @@ class PostgresqlVectorComponent(CustomComponent): connection_string=pg_server_url, ) except Exception as e: - raise RuntimeError(f"Failed to build Vector Store: {str(e)}") + raise RuntimeError(f"Failed to build PGVector: {e}")