Number of partitions. Used by the default and "MANUAL" modes. Defaults to 5.
mode
Optional[str]
Keyword-only. "AUTO" lets AlloyDB choose the index parameters, so num_leaves and quantizer are not sent. "MANUAL" sends num_leaves and quantizer explicitly. Case-insensitive. Defaults to None, which emits the same index options as previous releases. "AUTO" needs a table with at least 10,000 rows. On a smaller table it needs deferred index creation (Preview): turn on the scann.enable_index_maintenance flag and scann.enable_index_with_insufficient_data or scann.enable_preview_features. AlloyDB then builds the index when the table reaches 10,000 rows. See https://cloud.google.com/alloydb/docs/ai/create-scann-index. The set_maintenance_work_mem sizing is based on num_leaves, so it doesn't apply to "AUTO".
Methods
index_options
index_options()-> str
Set index query options for vector store initialization.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-29 UTC."],[],[]]