Samples
Arguments
Returns
A JSON configuration object that you can use inai.create_vectorizer.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure HNSW indexing for fast and accurate vector search
SELECT ai.create_vectorizer(
'blog_posts'::regclass,
indexing => ai.indexing_hnsw(min_rows => 50000, opclass => 'vector_l1_ops'),
-- other parameters...
);
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| min_rows | int | 100000 | ✖ | The minimum number of rows before creating the index |
| opclass | text | vector_cosine_ops | ✖ | The operator class for the index. Possible values are: vector_cosine_ops, vector_l1_ops, or vector_ip_ops |
| m | int | - | ✖ | Advanced HNSW parameters |
| ef_construction | int | - | ✖ | Advanced HNSW parameters |
| create_when_queue_empty | boolean | true | ✖ | Create the index only after all of the embeddings have been generated |
ai.create_vectorizer.