🐛 fix(pgvector.py): improve error message when failing to build PGVector component

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.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-10 09:07:45 -03:00
commit 8d4aae479c

View file

@ -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}")