Artificial Intelligence

Tim Angers on Graphs for Smarter AI

Tim Angers of The Good Collective demystifies graph data structures and algorithms for AI, showing how to build better graphs for smarter, cheaper, and more reliable AI applications.

Daniel Singer

By Daniel Singer, Editor, StartupHub.ai

3 min read

Presentation slide titled 'A Practitioner's Guide to Graphs' with 'GoodCollective' logo.
Credit: AI Engineer
Visual TL;DR
Tim Angers: GraphsCore
from The Good Collective demystifies graph data structures and algorithms for AI
From the article 5 mentionsAngers began by defining a graph as a collection of nodes (or vertices) connected by edges (or relationships).
Graphs for AIEffect
make AI applications smarter, cheaper, and more reliable for various uses
From the article 9+ mentionsHe emphasized that the meaning and utility of a graph can be significantly enhanced by adding labels, properties, and directionality to these nodes and edges.
Avoid PitfallsDriver
don't rush into graph solutions like GraphRAG without understanding nuances
Define a GraphContext
collection of nodes connected by edges, enhanced with labels, properties, and directionality
From the article 9+ mentionsA key principle he highlighted for extracting value from graphs is the importance of defining a schema.
Schema is KeyContext
defining a schema is crucial for extracting meaningful value from graph data
From the article 3 mentionsA key principle he highlighted for extracting value from graphs is the importance of defining a schema.
Enhanced AIOutcome
using graph algorithms for more sophisticated and robust AI applications
From the articleHe emphasized that the meaning and utility of a graph can be significantly enhanced by adding labels, properties, and directionality to these nodes and edges.
Future of GraphsOutcome
exploring advanced applications and continued evolution of graph technology in AI
From the article 9+ mentionsHe also briefly mentioned other graph algorithms like prediction, similarity, and clustering, noting that these areas, along with dynamic graphs and schema-less graphs, represent exciting future directions.
Contents(3)

Tim Angers from The Good Collective recently delivered a presentation titled "A Practitioner's Guide to Graphs," focusing on how graph data structures and algorithms can make AI applications "smarter, cheaper, and more reliable." Angers acknowledged that while graphs are a beautiful and powerful foundation in computer science, they aren't a universal solution, warning against the common pitfall of rushing into graph-based solutions like GraphRAG or graph databases without understanding their nuances.

Tim Angers on Graphs for Smarter AI - AI Engineer
Tim Angers on Graphs for Smarter AI, AI Engineer

The Fundamentals of Graphs in AI

Angers began by defining a graph as a collection of nodes (or vertices) connected by edges (or relationships). He emphasized that the meaning and utility of a graph can be significantly enhanced by adding labels, properties, and directionality to these nodes and edges. A key principle he highlighted for extracting value from graphs is the importance of defining a schema. Using the example of extracting information from a recipe, Angers demonstrated how a simple triple-based extraction yielded a basic graph, but defining a more structured schema, such as one that specifies ingredients with quantities and units, resulted in a far more meaningful and interrogable graph.

He further elaborated on enriching the graph by adding ontology, which dictates how information is extracted and standardized. This includes standardizing units and ingredient names to facilitate easier matching and conversion. Angers also touched upon the challenge of entity resolution, where variations like "garlic cloves" and "minced garlic" might represent the same ingredient. He showcased how embedding models, in conjunction with graph techniques, offer a more flexible approach to matching entities, even for terms not explicitly known in advance.

Graph Algorithms for Enhanced AI

Once a well-structured and curated graph is built, Angers explored its potential applications through various graph algorithms. He started with simple queries, comparing graph database query languages like Cypher to traditional SQL, noting that traversing multiple relationships becomes significantly more natural and efficient in a graph context.

Angers then introduced Personalized PageRank (PPR), a variant of the classic PageRank algorithm. He explained PPR's mechanism of a random walker who teleports back to a starting node, allowing for the identification of nodes with stronger relationships to that starting point. He cited Pinterest's recommendation engine and the Hippo Rag system for linking memories to questions as real-world examples of PPR's utility. Angers noted that PPR algorithms are particularly effective in dense clusters where identifying key relationships is challenging.

The daily brief

Get the free daily brief with the day's AI news, new AI startups and funding rounds every morning.

Join 64,000 other subscribers.

The shortest path algorithm was presented as another powerful tool for understanding relationships between two nodes. Angers suggested its application in code graphs to trace the lineage of a bug or to retrieve relevant context for AI agents, noting a significant reduction in tool calls for code search when such techniques are employed.

Finally, Angers discussed subgraph matching, which allows for the identification of specific patterns within a graph, even without knowing the exact node details beforehand. He illustrated this with the example of finding a decorator pattern in code, highlighting its ability to uncover complex relationships and structures that might be missed by other methods.

The Future of Graphs in AI

Angers concluded by summarizing the covered topics: navigating paths, ranking importance, and finding patterns. He also briefly mentioned other graph algorithms like prediction, similarity, and clustering, noting that these areas, along with dynamic graphs and schema-less graphs, represent exciting future directions. He encouraged the audience to explore these concepts further, emphasizing that by applying graph-native or hybrid algorithms, developers can build AI applications that are not only smarter but also more cost-effective and reliable.

Mentioned in this story

Markets

PinterestNYSE:PINS

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

TopicsTim AngersThe Good CollectiveAI EngineerGraph Data StructuresGraph AlgorithmsPersonalized PageRankShortest Path AlgorithmSubgraph Matching

Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute, free.

Watch

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.