Create Vector Index
Create an index on a column.
Vector index options are: IVF_PQ
and IVF_HNSW_SQ
. The distance_type
parameter is required for vector indices.
For full text search, use FTS
.
For scalar indices,
use BTREE
, BITMAP
, or LABEL_LIST
.
Authorizations
Path Parameters
name of the table
Body
type of index to create
IVF_PQ
, IVF_HNSW_SQ
, BTREE
, BITMAP
, LABEL_LIST
, FTS
Whether to convert non-ASCII characters to ASCII, used for accent folding.
The base tokenizer to use for full text search.
The targeted vector column to index. Required only if there are multiple vector columns.
distance metric to use for search
L2
, Cosine
, Dot
The language to use for stemming and stop words.
Whether to convert tokens to lowercase.
The maximum token length to index, longer tokens are ignored.
Whether to remove stop words from tokens.
Whether to apply stemming to tokens.
Whether to store the position of tokens in docs, required for phrase search.
Response
The response is of type object
.