PgVectorStorage is an implementation of BaseVectorStorage for
PostgreSQL with pgvector extension.This class provides methods to add, delete, query, and manage vector
records in a PostgreSQL database using the pgvector extension.
It supports different distance metrics for similarity search.Parameters:
vector_dim (int): The dimension of the vectors to be stored.
conn_info (Dict[str, Any]): Connection information for psycopg2.connect.
table_name (str, optional): Name of the table to store vectors. (default: :obj:None)
distance (VectorDistance, optional): Distance metric for vector comparison. (default: :obj:VectorDistance.COSINE)