Load ScaNN index, docstore, and index_to_docstore_id from disk.
load_local(
cls,
folder_path: str,
embedding: Embeddings,
index_name: str = 'index',
*,
allow_dangerous_deserialization: bool = False,
**kwargs: Any = {}
) -> ScaNN| Name | Type | Description |
|---|---|---|
folder_path* | str | folder path to load index, docstore, and index_to_docstore_id from. |
embedding* | Embeddings | Embeddings to use when generating queries |
index_name | str | Default: 'index'for saving with a specific index file name |
allow_dangerous_deserialization | bool | Default: Falsewhether to allow deserialization of the data which involves loading a pickle file. Pickle files can be modified by malicious actors to deliver a malicious payload that results in execution of arbitrary code on your machine. |