K-Nearest-Neighbors in DGraph

Moved from GitHub dgraph/2142

Posted by swagluke:

Neo4j has query that does K-Nearest-Neighbors
BlogPost link:
https://neo4j.com/graphgist/movie-recommendations-with-k-nearest-neighbors-and-cosine-similarity#_view_your_nearest_neighbors

@pawanrawal has read the blogpost and figure the missing part from DGraph is the ability to do a cross product between two vectors.

It would be nice to have documentations or blogpost after this new feature is developed.

Hello! Is this a feature that has been already developed? Thanks

Nopes, we don’t have this feature yet.

You could load your graph from Dgraph into Spark (using spark-dgraph-connector) and then run an existing k-NN implementation for Spark.