Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix documentation on making recommendations #273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ We therefore have high confidence in our approach.

Using the information we derived that the `Person` nodes named "Annie" and "Matt" are similar, we can make product recommendations for each of them.
Since they are similar, we can assume that products purchased by only one of the people may be of interest to buy also for the other person not already buying the product.
By this principle we can derive product recommendations for the `Person` named "Matt" using a simple Cypher query.
By this principle we can derive product recommendations for the `Person` named "Annie" using a simple Cypher query.

[role=query-example, group=fastrp-knn]
--
.Product recommendations for `Person` node with name "Matt":
.Product recommendations for `Person` node with name "Annie":
[source, cypher, role=noplay , group=fastrp-knn]
----
MATCH (:Person {name: "Annie"})-->(p1:Product)
Expand All @@ -212,7 +212,7 @@ RETURN p2.name as recommendation
|===
--

Indeed, "Kale" is the one product that the `Person` named "Annie" buys that is also not purchased by the `Person` named "Matt".
Indeed, "Kale" is the one product that the `Person` named "Matt" buys that is also not purchased by the `Person` named "Annie".


== Conclusion
Expand Down