POST
/
v2
/
create_vector_index

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
table_name
enum<string> | null
default: CHUNKS

The name of the vector table to create.

Available options:
CHUNKS,
entity_embedding,
community_report
index_method
enum<string>

The type of vector index to create.

Available options:
auto,
ivfflat,
hnsw
measure
enum<string>

The measure for the index.

Available options:
cosine_distance,
l2_distance,
max_inner_product
index_arguments
object | null

The arguments for the index method.

replace
boolean
default: true

Whether to replace an existing index.

concurrently
boolean
default: true

Whether to create the index concurrently.

Response

200 - application/json
results
object
required