File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
pgvector-module/src/main/kotlin/griffio/grammar
src/main/sqldelight/griffio/migrations Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -67,3 +67,16 @@ extension_expr ::= distance_operator_expression | {double_colon_cast_operator_ex
67
67
implements = "app.cash.sqldelight.dialects.postgresql.grammar.psi.PostgreSqlExtensionExpr"
68
68
override = true
69
69
}
70
+
71
+ index_method ::= 'BRIN' | 'BTREE' | 'GIN' | 'GIST' | 'HASH' | 'HNSW' | 'IVFFLAT' {
72
+ extends = "app.cash.sqldelight.dialects.postgresql.grammar.psi.impl.PostgreSqlIndexMethodImpl"
73
+ implements = "app.cash.sqldelight.dialects.postgresql.grammar.psi.PostgreSqlIndexMethod"
74
+ override = true
75
+ }
76
+
77
+ storage_parameters ::= 'autosummarize' | 'buffering' | 'deduplicate_items' | 'fastupdate' | 'fillfactor' | 'gin_pending_list_limit' | 'pages_per_range' | 'lists' {
78
+ extends = "app.cash.sqldelight.dialects.postgresql.grammar.psi.impl.PostgreSqlStorageParameterImpl"
79
+ implements = "app.cash.sqldelight.dialects.postgresql.grammar.psi.PostgreSqlStorageParameter"
80
+ override = true
81
+ }
82
+
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ CREATE TABLE items (
3
3
embedding VECTOR(3)
4
4
);
5
5
6
+ CREATE INDEX idx_embedding_hnsw ON items USING hnsw (embedding vector_l2_ops);
7
+
8
+ CREATE INDEX idx_embedding_ivfflat ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100);
You can’t perform that action at this time.
0 commit comments