# Module loader (0.8.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.8.0 (latest)](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/latest/langchain_google_bigtable.loader)
- [0.7.0](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/0.7.0/langchain_google_bigtable.loader)
- [0.6.0](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/0.6.0/langchain_google_bigtable.loader)
- [0.5.0](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/0.5.0/langchain_google_bigtable.loader)
- [0.4.4](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/0.4.4/langchain_google_bigtable.loader)
- [0.3.1](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/0.3.1/langchain_google_bigtable.loader)
- [0.2.3](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/0.2.3/langchain_google_bigtable.loader)
API documentation for `loader` module.

## Classes

### [BigtableLoader](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/latest/langchain_google_bigtable.loader.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,
    )

Load from the Google Cloud Platform `Bigtable`.

### [BigtableSaver](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/latest/langchain_google_bigtable.loader.BigtableSaver)

    BigtableSaver(
        instance_id: str,
        table_id: str,
        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`.

### [Encoding](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/latest/langchain_google_bigtable.loader.Encoding)

    Encoding(value)

An enumeration.

### [MetadataMapping](https://docs.cloud.google.com/python/docs/reference/langchain-google-bigtable/latest/langchain_google_bigtable.loader.MetadataMapping)

    MetadataMapping(column_family: 'str', column_name: 'str', metadata_key: 'str', encoding: 'Encoding', custom_encoding_func: 'Callable[[Any], bytes]' = <function MetadataMapping.__not_implemented at 0x7f0c18356560>, custom_decoding_func: 'Callable[[bytes], Any]' = <function MetadataMapping.__not_implemented at 0x7f0c18356560>)

MetadataMapping(column_family: 'str', column_name: 'str', metadata_key: 'str', encoding: 'Encoding', custom_encoding_func: 'Callable\[\[Any\], bytes\]' = \<function MetadataMapping.__not_implemented at 0x7f0c18356560\>, custom_decoding_func: 'Callable\[\[bytes\], Any\]' = \<function MetadataMapping.__not_implemented at 0x7f0c18356560\>)

## Modules
Functions

### init_document_table

    init_document_table(
        instance_id: str,
        table_id: str,
        client: typing.Optional[google.cloud.bigtable.client.Client] = None,
        content_column_family: str = "langchain",
        metadata_mappings: typing.List[
            langchain_google_bigtable.loader.MetadataMapping
        ] = [],
        metadata_as_json_column_family: typing.Optional[str] = None,
    ) -> None

Create a table for saving of langchain documents.
If table already exists, a google.api_core.exceptions.AlreadyExists error is thrown.