2.4 · Challenge

Build a GraphRAG Tool

In the previous lessons, you learned about module-scope shared state and logging patterns for your TypeScript MCP server.

In this challenge, you will build a tool that searches for movies in a specific genre, using nodesA vertex in a graph. In a property graph it can carry labels and properties. and relationshipsA 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 LLMA model trained on text to predict the next token, and so to generate language. - the essence of GraphRAGRetrieval-augmented generation whose context comes from a knowledge graph, so the model can follow the relationships between facts..