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