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:
Parameters | Description | Required |
---|---|---|
table | Table name, such as "book" created in this example | Yes |
database_name | Database where the table is located | No, defaults to "default" database |
index_name | Vector index name | Yes |
wait_for_completion | Whether to wait until the job is done | Yes |
timeout | Operation timeout | If "wait_for_completion" is set to true, timeout parameter is required |