langchain_community.vectorstores.sklearn.BaseSerializer¶

class langchain_community.vectorstores.sklearn.BaseSerializer(persist_path: str)[source]¶

Base class for serializing data.

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

__init__(persist_path: str) None[source]¶
abstract classmethod extension() str[source]¶

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

abstract load() Any[source]¶

Loads the data from the persist_path

abstract save(data: Any) None[source]¶

Saves the data to the persist_path