Static method to load a vector store from a directory. It reads the HNSW index, the arguments, and the document store from the directory, then creates a new HNSWLib instance with these values.
load(directory: string, embeddings: EmbeddingsInterface): Promise<HNSWLib>| Name | Type | Description |
|---|---|---|
directory* | string | The directory from which to load the vector store. |
embeddings* | EmbeddingsInterface | The embeddings to be used by the HNSWLib instance. |