From 96181fba0547eebc57c3a8f63bf54ec9eda1909e Mon Sep 17 00:00:00 2001 From: jreakin Date: Mon, 23 Mar 2026 03:40:14 -0500 Subject: [PATCH] fix: pass readOnly=false for CREATE_VECTOR_INDEX in embedding pipeline The readOnly=true default on executeQuery blocks queries containing CREATE, which includes CALL CREATE_VECTOR_INDEX. The embedding pipeline needs write access for this setup step. Co-Authored-By: Claude Opus 4.6 (1M context) --- gitnexus-web/src/core/embeddings/embedding-pipeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnexus-web/src/core/embeddings/embedding-pipeline.ts b/gitnexus-web/src/core/embeddings/embedding-pipeline.ts index ea4756da2..18a710988 100644 --- a/gitnexus-web/src/core/embeddings/embedding-pipeline.ts +++ b/gitnexus-web/src/core/embeddings/embedding-pipeline.ts @@ -124,7 +124,7 @@ const createVectorIndex = async ( `; try { - await executeQuery(cypher); + await executeQuery(cypher, false); // readOnly=false: CALL CREATE_VECTOR_INDEX is a write operation } catch (error) { // Index might already exist if (import.meta.env.DEV) {