blogs icon indicating copy to clipboard operation
blogs copied to clipboard

Error when using custom retriever of LlamaIndex example of PropertyGraph

Open csaiedu opened this issue 1 year ago • 0 comments

in the last part of the code provided in the example taken from :

https://www.llamaindex.ai/blog/customizing-property-graph-index-in-llamaindex

response = query_engine.query("What do you know about Maliek Collins or Darragh O’Brien?") print(str(response))

CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Unknown function 'vector.similarity.cosine' (line 3, column 21 (offset: 120))
"            WITH e, vector.similarity.cosine(e.embedding, $embedding) AS score"
                     ^}

I have upgraded Llamaindex and neo4j to the latest with no success.

csaiedu avatar Jun 19 '24 11:06 csaiedu