Method to save the vector store to a directory. It saves the HNSW index, the arguments, and the document store to the directory.
save(directory: string): Promise<void>| Name | Type | Description |
|---|---|---|
directory* | string | The directory to which to save the vector store. In CloseVector, we use IndexedDB to mock the file system. Therefore, this parameter is can be treated as a key to the contents stored. |