mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-10 03:27:59 +00:00
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:
parent
208ade9b11
commit
96181fba05
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue