StorageConfig
TheStorageConfig class specifies the backing store for an index’s keystores. It is immutable and is built via static factory methods. A single StorageConfig is shared across all per-index keystores and is passed to the Client constructor.
CyborgDB supports two backing stores: disk and s3.
Factories
Properties (Read-Only)
Example Usage
S3Credentials
Explicit credentials for theStorageConfig.s3(...) factory. Omit credentials= on .s3() to use the AWS default credential provider chain (environment variables, ~/.aws/credentials, EC2 instance profile, EKS IRSA).
Parameters
Example Usage
GPUConfig
TheGPUConfig class configures which operations should use GPU acceleration. GPU acceleration requires CUDA support.
Parameters
Properties (Read-Only)
Example Usage
DistanceMetric
DistanceMetric is a string representing the distance metric used for the index. Options include:
"cosine": Cosine similarity."euclidean": Euclidean distance."squared_euclidean": Squared Euclidean distance.
StoragePrecision
StoragePrecision is a str enum naming the on-disk rerank-vector format, chosen at create time and immutable. Each member’s value is its lowercase string, so the raw strings (and np.float32 / np.float16) are also accepted wherever storage_precision is.
KMSBlob
KMSBlob describes a per-index envelope recording how the index KEK is wrapped by an external KMS. It is used with the module-level KMS functions (create_index_kms, push_index_kms, get_index_kms, delete_index_kms). This is an advanced, optional surface primarily for the service layer; embedded SDK users supplying their own KEK can ignore it or use provider="none".