2.4 · Challenge

Build a GraphRAG Tool

In the previous lessons, you learned about module-scope shared state and logging Full definition for pattern (opens in a new tab)A graph structure written in Cypher, such as a node joined to another node by a relationship. for your TypeScript MCP server.

In this challenge, you will build a tool that searches for movies in a specific genre, using Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. from the graph to provide relevant context to the Go to glossary for large language model (opens in a new tab)A model trained on text to predict the next token, and so to generate language. - the essence of Full definition for GraphRAG (opens in a new tab)Retrieval-augmented generation whose context comes from a knowledge graph, so the model can follow the relationships between facts..