Toggle Menu
Prev Up Next

# `langchain_community.vectorstores.sklearn`.ParquetSerializer

class langchain_community.vectorstores.sklearn.ParquetSerializer(persist_path: str)

  Serialize data in Apache Parquet format using the pyarrow package.

  Methods

  `__init__`(persist_path) |
  `extension`() | The file extension suggested by this serializer (without dot).
  `load`() | Loads the data from the persist_path
  `save`(data) | Saves the data to the persist_path

  Parameters

    persist_path (str) –

  __init__(persist_path: str) → None
    Parameters

      persist_path (str) –

    Return type

      None

  classmethod extension() → str

    The file extension suggested by this serializer (without dot).

    Return type

      str

  load() → Any

    Loads the data from the persist_path

    Return type

      Any

  save(data: Any) → None

    Saves the data to the persist_path

    Parameters

      data (Any) –

    Return type

      None