I am trying to create vector index. Using the following query it gives me some wierd error. Not able to proceed further. Tried all sorts of edits .
I use neo4j 5.19.0 desktop version. Running on my Mac notebook.
CREATE VECTOR INDEX objectivesvector IF NOT EXISTS
FOR (q:Objective)
ON (q.embedding)
OPTIONS {
indexConfig: {
"vector.dimensions": 1536,
"vector.similarity_function": "cosine"
}
}
Error I get:
Invalid input '{': expected "+" or "-" (line 5, column 18 (offset: 113))
" indexConfig: {"
Not able to figure out what is causing checked all the docs. Please help me here.
tried putting 'objectivesvector' also, no luck. I do have embeddings stored in that embedding property.
this worked
CREATE VECTOR INDEX objectivesvector IF NOT EXISTS
FOR (q:Objective)
ON (q.embedding)
OPTIONS {
indexConfig: {
`vector.dimensions`: 1536,
`vector.similarity_function`: "cosine"
}
}