Our summary
Neo4j stores information as connected items: each link describes how two items relate. This demonstration starts at one item and gives Jev a goal. It supplies existing nearby links rather than asking the model to invent a whole route through the information.
The program samples nearby links and asks Jev which to follow and whether the goal has been reached. It may keep several promising links and repeat from each new position. The search can therefore produce several candidate routes, not just one chain of single choices.
Each sample has a size limit, so omitted links cannot be chosen even if they lead to the goal. A promising route need not be correct or shortest. Check repeated visits and step limits, and remember that the information shown to Jev leaves the database.
Key takeaways
- Offer existing links rather than invented connections.
- Keep several promising routes when the search branches.
- Sampling can miss useful links, and a high-ranked route is not guaranteed correct.