neo4j and gds versions:
Graph Projection
CALL {
MATCH(nodes:Incident|Query) WHERE nodes.lastTime >= datetime() - duration({days:30})
RETURN gds.graph.project(
"testgraph",
nodes,
null,
{
// Load only the 'feat' vector; labels are optional
sourceNodeProperties: nodes { .feat, .geo },
targetNodeProperties: {}
}
) AS g
}
RETURN g.graphName AS graph, g.nodeCount AS nodes, g.relationshipCount AS rels;
RESULT:
Running KNN on stream mode:
CALL gds.knn.stream("testgraph", {
nodeProperties: [
{feat: "COSINE"},
{geo: "EUCLIDEAN"}
],
topK: 1,
similarityCutoff: 0.75, // e.g. 0.70
randomSeed: 42, concurrency: 1, sampleRate: 1.0, deltaThreshold: 0.0
})
YIELD node1, node2, similarity
WITH gds.util.asNode(node1) AS src, gds.util.asNode(node2) AS dst, similarity
WHERE src:Query AND src.qid = "q_32360_1759902492677_95f53a" AND dst:Incident
RETURN dst.incident_id AS incident_id, similarity
ORDER BY similarity DESC LIMIT 1;
RESULT: error
can anyone please help me fix this error.

