POST
/
v1
/
table
/
{name}
/
create_index
/
curl --request POST \
  --url https://{db}.{region}.api.lancedb.com/v1/table/{name}/create_index/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "index_type": "IVF_PQ",
  "column": "vector",
  "distance_type": "L2",
  "with_position": true,
  "base_tokenizer": "simple",
  "language": "English",
  "max_token_length": 40,
  "lower_case": false,
  "stem": false,
  "remove_stop_words": false,
  "ascii_folding": false
}'
{}

Authorizations

x-api-key
string
header
required

Path Parameters

name
string
required

name of the table

Body

application/json

Response

200
application/json

Vector index is created successfully

The response is of type object.