Class BigtableLoader (0.4.0)

BigtableLoader(
    instance_id: str,
    table_id: str,
    row_set: typing.Optional[google.cloud.bigtable.row_set.RowSet] = None,
    filter: typing.Optional[google.cloud.bigtable.row_filters.RowFilter] = None,
    client: typing.Optional[google.cloud.bigtable.client.Client] = None,
    content_encoding: langchain_google_bigtable.loader.Encoding = Encoding.UTF8,
    content_column_family: str = "langchain",
    content_column_name: str = "content",
    metadata_mappings: typing.List[
        langchain_google_bigtable.loader.MetadataMapping
    ] = [],
    metadata_as_json_column_family: typing.Optional[str] = None,
    metadata_as_json_column_name: typing.Optional[str] = None,
    metadata_as_json_encoding: langchain_google_bigtable.loader.Encoding = Encoding.UTF8,
)

Load from the Google Cloud Platform Bigtable.

Methods

BigtableLoader

BigtableLoader(
    instance_id: str,
    table_id: str,
    row_set: typing.Optional[google.cloud.bigtable.row_set.RowSet] = None,
    filter: typing.Optional[google.cloud.bigtable.row_filters.RowFilter] = None,
    client: typing.Optional[google.cloud.bigtable.client.Client] = None,
    content_encoding: langchain_google_bigtable.loader.Encoding = Encoding.UTF8,
    content_column_family: str = "langchain",
    content_column_name: str = "content",
    metadata_mappings: typing.List[
        langchain_google_bigtable.loader.MetadataMapping
    ] = [],
    metadata_as_json_column_family: typing.Optional[str] = None,
    metadata_as_json_column_name: typing.Optional[str] = None,
    metadata_as_json_encoding: langchain_google_bigtable.loader.Encoding = Encoding.UTF8,
)

Initialize Bigtable document loader.

lazy_load

lazy_load() -> typing.Iterator[langchain_core.documents.base.Document]

A lazy loader for Documents.

load

load() -> typing.List[langchain_core.documents.base.Document]

Load data into Document objects.