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

Parameters

persist_path (str) –

__init__(persist_path: str) None[source]¶
Parameters

persist_path (str) –

Return type

None

abstract classmethod extension() str[source]¶

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

Return type

str

abstract load() Any[source]¶

Loads the data from the persist_path

Return type

Any

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

Saves the data to the persist_path

Parameters

data (Any) –

Return type

None