cyborg::Client
class manages storage configurations and acts as a factory for creating or loading encrypted indexes.
Client
.
Parameter | Type | Description |
---|---|---|
api_key | std::string | API key for your CyborgDB account. |
index_location | DBConfig | Configuration for index storage location. |
config_location | DBConfig | Configuration for index metadata storage. |
items_location | DBConfig | Configuration intended to be used in a future release. Pass in a DBConfig with a Location of ‘None’. |
cpu_threads | int | Number of CPU threads to use (e.g., 0 to use all available cores). |
gpu_accelerate | bool | Whether to enable GPU acceleration (requires CUDA). |
std::invalid_argument
cpu_threads
parameter is less than 0
.DBConfig
is invalid.gpu_accelerate
is true
.std::runtime_exception