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) <noreply@anthropic.com>
This commit is contained in:
jreakin 2026-03-23 03:40:14 -05:00
parent 208ade9b11
commit 96181fba05

View file

@ -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) {