issues. Data can be stored anywhere.
compute_engine - C++ implementation of the Deep Lake ComputeEngine that runs on the client. Can be used for any data stored in
or connected to Deep Lake. Not for in-memory or local datasets.
tensor_db - Hosted Managed Tensor Database that isresponsible for storage and query execution. Only for data stored in
the Deep Lake Managed Database. Use runtime = {“db_engine”: True}
during dataset creation.
runtime (Dict, optional) – Parameters for creating the Vector Store in
Deep Lake’s Managed Tensor Database. Not applicable when loading an
existing Vector Store. To create a Vector Store in the Managed Tensor
Database, set runtime = {“tensor_db”: True}.
index_params (Optional[Dict[str, Union[int, str]]], optional) – Dictionary
containing information about vector index that will be created. Defaults
to None, which will utilize DEFAULT_VECTORSTORE_INDEX_PARAMS from
deeplake.constants. The specified key-values override the default
ones.
- threshold: The threshold for the dataset size above which an index
will be created for the embedding tensor. When the threshold value
is set to -1, index creation is turned off. Defaults to -1, which
turns off the index.
distance_metric: This key specifies the method of calculating thedistance between vectors when creating the vector database (VDB)
index. It can either be a string that corresponds to a member of
the DistanceType enumeration, or the string value itself.
- If no value is provided, it defaults to “L2”.
- “L2” corresponds to DistanceType.L2_NORM.
- “COS” corresponds to DistanceType.COSINE_SIMILARITY.
additional_params: Additional parameters for fine-tuning the index.
**kwargs – Other optional keyword arguments.
Raises
ValueError – If some condition is not met.