aextract_pgvector_collection#
- async langchain_postgres.utils.pgvector_migrator.aextract_pgvector_collection(
- engine: PGEngine,
- collection_name: str,
- batch_size: int = 1000,
Extract all data belonging to a PGVector collection.
- Parameters:
engine (PGEngine) – The PG engine corresponding to the Database.
collection_name (str) – The name of the collection to get the data for.
batch_size (int) – The batch size for collection extraction. Default: 1000. Optional.
- Yields:
The data present in the collection.
- Return type:
AsyncIterator[Sequence[RowMapping]]