Some progress but I've got error:
Failed to invoke procedure
db.index.vector.queryNodes: Caused by: java.lang.IllegalArgumentException: Index query vector has 196 dimensions, but indexed vectors have 384.
I created index:
CREATE VECTOR INDEX `abstract-embeddings`
FOR (n: Abstract) ON (n.embedding)
OPTIONS {indexConfig: {
`vector.dimensions`: 384,
`vector.similarity_function`: 'cosine'
}}
My embeddings were created with SBERT, all-MiniLM-L6-v2 model (384 dimensional dense vector space)
But when I run query
MATCH (title:Title)<--(:Paper)-->(abstract:Abstract)
WHERE toLower(title.text) = 'efficient and robust approximate nearest neighbor search using
hierarchical navigable small world graphs'
CALL db.index.vector.queryNodes('abstract-embeddings', 10, abstract.embedding)
YIELD node AS similarAbstract, score
MATCH (similarAbstract)<--(:Paper)-->(similarTitle:Title)
RETURN similarTitle.text AS title, score
I get error as above. What is 'Index query vector'? Where I can set 'dimenstions' parameter for that?