/** * CyborgDB Service * REST API for CyborgDB: The Confidential Vector Database * * The version of the OpenAPI document: 0.17.1.dev16 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Request model for training an index. * * Attributes: * n_lists (Optional[int]): Number of lists/clusters for the index. Default is auto. * batch_size (Optional[int]): Size of each batch for training. Default is 2048. * max_iters (Optional[int]): Maximum iterations for training. Default is 100. * tolerance (Optional[float]): Convergence tolerance for training. Default is 1e-6. * max_memory (Optional[int]): Maximum memory (MB) usage during training. Default is 0 (no limit). * @export * @interface TrainRequest */ export interface TrainRequest { /** * ID name * @type {string} * @memberof TrainRequest */ indexName: string; /** * 32-byte encryption key as hex string. Required for SDK-supplied indexes; must be omitted for KMS-backed indexes (the service resolves the KEK via the index's KMSBlob). * @type {string} * @memberof TrainRequest */ indexKey?: string | null; /** * * @type {number} * @memberof TrainRequest */ nLists?: number | null; /** * * @type {number} * @memberof TrainRequest */ batchSize?: number | null; /** * * @type {number} * @memberof TrainRequest */ maxIters?: number | null; /** * * @type {number} * @memberof TrainRequest */ tolerance?: number | null; /** * * @type {number} * @memberof TrainRequest */ maxMemory?: number | null; } /** * Check if a given object implements the TrainRequest interface. */ export declare function instanceOfTrainRequest(value: object): value is TrainRequest; export declare function TrainRequestFromJSON(json: any): TrainRequest; export declare function TrainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainRequest; export declare function TrainRequestToJSON(json: any): TrainRequest; export declare function TrainRequestToJSONTyped(value?: TrainRequest | null, ignoreDiscriminator?: boolean): any;