Compact Vector Index Manually

curl -u shiva:shiva -XPOST 'localhost:8902/hippo/v1/{table}/_compact_embedding_index?database_name={database_name}&pretty' -H 'Content-Type: application/json' -d'{
  "index_name" : "pq_index",
  "wait_for_completion" : true,
  "timeout" : "2m"
}';

Result:

{
  "job_id" : "da4ce8d7f032415e87456c697f6592c3",
  "job_status" : "SHIVA_JOB_SUCCESS",
  "embedding_number" : 0,
  "task_results" : [
    {
      "id" : "bef72e410cd44d56a2f50a444353bf2c",
      "status" : "TASK_SUCCESS",
      "server" : "tw-node48:8702",
      "embedding_number" : 0,
      "execute_time" : 0.0
    }
  ]
}

Parameter description:

ParametersDescriptionRequired
tableTable name, such as "book" created in this exampleYes
database_nameDatabase where the table is locatedNo, defaults to "default" database
index_nameVector index nameYes
wait_for_completionWhether to wait until the job is doneYes
timeoutOperation timeoutIf "wait_for_completion" is set to true, timeout parameter is required
Table 30 Compact Vector Index Manually (Python API)