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 three backing stores: memory, disk, and s3.
Factories
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
Storage Precision
storage_precision controls the on-disk dtype of the rerank vectors for a DiskIVF index, set at create_index time.
The strings
"float32" and "float16" are also accepted.
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.
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".