Load Annoy index, docstore, and index_to_docstore_id to disk.
load_local(
cls,
folder_path: str,
embeddings: Embeddings,
*,
allow_dangerous_deserialization: bool = False
) -> Annoy| Name | Type | Description |
|---|---|---|
folder_path* | str | folder path to load index, docstore, and index_to_docstore_id from. |
embeddings* | Embeddings | Embeddings to use when generating queries. |
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. |