Authorizations
Response
Index details of an index.
Example:
100000
Type of index to create for optimizing search performance.
Vector Indexes:
- IVF_PQ: Default vector index using Inverted File with Product Quantization. Optimized for high-dimensional vectors with excellent compression.
- IVF_HNSW_SQ: Combines IVF clustering with HNSW graph and Scalar Quantization for improved search quality and speed.
Scalar Indexes:
- BTREE: B-tree index for efficient range queries and equality comparisons on scalar data.
- BITMAP: Bitmap index for high-cardinality categorical data with fast boolean operations.
- LABEL_LIST: Optimized for label-based filtering and categorical data with limited unique values.
Full-Text Search:
- FTS: Full-text search index using BM25 algorithm for keyword-based search on text columns.
Available options:
IVF_PQ, IVF_HNSW_SQ, BTREE, BITMAP, LABEL_LIST, FTS Distance metric to use for vector similarity search. The choice of metric significantly impacts search accuracy and performance.
- L2 (Euclidean): Default metric, measures straight-line distance between vectors. Best for general-purpose similarity search.
- Cosine: Measures the cosine of the angle between vectors (0-1 range). Best for normalized embeddings and semantic similarity.
- Dot: Raw dot product without normalization. Sensitive to vector magnitudes, useful for raw similarity scores.
- Hamming: Counts differing bit positions in binary vectors. Only for binary vectors stored as packed uint8 arrays.
Important: Use the same distance metric that your embedding model was trained with. Most modern embedding models use cosine similarity.
Available options:
L2, Cosine, Dot