| index_new | R Documentation |
Creates or loads a vector index at the specified path.
index_new(dim, path)
dim |
Integer. The dimensionality of vectors to be stored. |
path |
Character. Directory path where the index will be stored.
Will create |
An object of class usearchlite_index containing the index state.
tmp <- tempfile()
dir.create(tmp)
idx <- index_new(3L, tmp)
unlink(tmp, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.