WhoBuilt

A Practitioner's Guide to Graphs

Jul 18, 2026· 14 min· 11K views·Watch on YouTube

Speaker

Tim Ainge of Good Collective presents AI Engineer’s guide to graph fundamentals, graph data design, and algorithms for building AI applications.

When graphs are a good fit

Ainge cautions that graphs are not always the right tool, and that adopting GraphRAG or a graph database may not deliver an immediate payoff. He focuses on graph fundamentals and use cases that complement search, retrieval, pattern recognition, and knowledge-based AI work.

Build structured, consistent graphs

Using a pancake recipe, Ainge shows how an extractor given only a request for subject-predicate-object triples can produce a graph that is hard to use. A schema for recipes, ingredients, quantities, steps, and cooking techniques gives the output more consistent types and queryable relationships. He also recommends ontology instructions such as standardizing ingredient names and using metric units.

Match entities before adding nodes

Ainge illustrates how names such as garlic cloves, minced garlic, and plain garlic can create duplicate ingredient nodes. A fixed mapping can merge known duplicates, but it requires knowing the ingredients in advance. Embeddings allow more flexible matching of terms that were not anticipated, combining AI techniques with graph structure.

Use graph algorithms to find relevant context

Personalized PageRank ranks nodes by their relationship to a starting point; Ainge cites Pinterest’s Pixie paper and HippoRAG as examples. Shortest-path methods can connect a broken checkout to a changed basket constructor in a code graph, while subgraph matching can find patterns such as a decorator without knowing the specific symbols in advance. In one .NET codebase evaluation, graph techniques reduced code-search tool calls by 40%.

Look beyond familiar search patterns

Ainge recaps path navigation, ranking, and pattern matching, and notes that the presentation pack includes pointers to prediction, similarity, and clustering. He says graph approaches can surface intermediate relationships that vector search or individual symbol lookups may miss, and encourages builders to consider graph-native or hybrid algorithms for AI applications.

Takeaways

  • Choose graphs when relationships or multi-hop connections are central to the problem, rather than adopting them for their own sake.
  • Give extraction models a schema and clear ontology rules so graph entities and relationships stay consistent and queryable.
  • Use embedding-based matching to reconcile entity names when a fixed list of known terms is impractical.
  • Consider personalized PageRank when relevance depends on proximity to a starting node in a dense graph.
  • Use path search or subgraph matching to retrieve context and discover patterns that require traversing relationships.

Mentioned in this talk

Search inside this talk

What was claimed 3

  • works at
    “I'm Tim Ainge from Good Collective”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    HippoRAG: Uses graph techniques to link memories to questions and answers
    “HippoRAG, which uses some other cool graph techniques as well to link memories to questions and answers”
    YouTube
    Unverified1 source· Talk
  • metric
    Shortest-path algorithm: 40% reduction in tool calls for code search in one .NET codebase evaluation
    “we saw a 40% reduction in tool calls for code search”
    YouTube
    Unverified1 source· Talk

Related talks