load(
directory: string,
embeddings: EmbeddingsInterface,
credentials: CloseVectorCredentials
): Promise<CloseVectorNode| Name | Type | Description |
|---|---|---|
directory* | string | |
embeddings* | EmbeddingsInterface | |
credentials | CloseVectorCredentials |
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.
The directory from which to load the vector store.
The embeddings to be used by the CloseVectorNode instance.