| VectrixDB | R Documentation |
Main database interface managing collections
vectrixdb(path = NULL, storage_type = "memory")
path |
Storage path |
storage_type |
Storage type |
VectrixDB object
pathDatabase storage path
new()Create or open a VectrixDB database
VectrixDB$new(path = NULL, storage_type = "memory")
pathStorage path
storage_typeStorage type ("memory" or "sqlite")
create_collection()Create a new collection
VectrixDB$create_collection( name, dimension, metric = "cosine", enable_text_index = TRUE )
nameCollection name
dimensionVector dimension
metricDistance metric
enable_text_indexEnable text indexing
Collection object
get_collection()Get an existing collection
VectrixDB$get_collection(name)
nameCollection name
Collection object
list_collections()List all collections
VectrixDB$list_collections()
Character vector of collection names
delete_collection()Delete a collection
VectrixDB$delete_collection(name)
nameCollection name
has_collection()Check if collection exists
VectrixDB$has_collection(name)
nameCollection name
Logical
stats()Get database statistics
VectrixDB$stats()
List with stats
close()Close the database
VectrixDB$close()
print()Print database summary
VectrixDB$print()
clone()The objects of this class are cloneable with this method.
VectrixDB$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.