Fix documents parameter type in

PostgresqlVectorComponent constructor
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-10 09:31:07 -03:00
commit 682e51bf6a

View file

@ -43,7 +43,7 @@ class PostgresqlVectorComponent(CustomComponent):
embedding: Embeddings, embedding: Embeddings,
pg_server_url: str, pg_server_url: str,
collection_name: str, collection_name: str,
documents: Optional[Document] = None, documents: Optional[List[Document]] = None,
) -> VectorStore: ) -> VectorStore:
""" """
Builds the Vector Store or BaseRetriever object. Builds the Vector Store or BaseRetriever object.