WhoBuilt

Graph Intelligence: Enhance Reasoning and Retrieval Using Graph Analytics

Jun 27, 2025· 1 h 41 min· 1.1K views·Watch on YouTube

Speakers

Alison Cosette of Neo4j’s developer relations team, joined by Andreas, explains at an AI Engineer session how graph analytics can improve retrieval, reasoning, and oversight in RAG applications.

Connect application activity to knowledge

Alison describes knowledge graphs as a way to connect vectorized document chunks with people, products, and other structured information. She also proposes tracking prompts, responses, and retrieved context in an application graph, so teams can see which documents shape outcomes. She recommends starting with a small schema and refining it against real questions and a subset of data.

Build similarity and community views

Alison’s workflow is to connect, cluster, and curate: run k-nearest neighbors on chunk embeddings, then use community detection to group similar documents. She explains Louvain’s modularity approach and mentions label propagation as a faster clustering option. These groupings can reveal repetitive, low-quality, or missing content.

Improve retrieval quality and efficiency

Alison shows how clusters can expose near-duplicate chunks, including one community of 49 documents with average similarity of 0.98. Collapsing duplicates can make retrieval more efficient while preserving source relationships and lineage. Teams can also rerank results for diversity or PageRank, rather than returning many highly similar chunks.

Track usage and accountability

Alison describes analyzing which document communities appear in conversations, how users move between them, and how ratings vary by community. Those signals can point to outdated or overused material and help teams assess what their systems amplify. She stresses that graph analytics can support oversight of agent workflows, while Andreas notes that content is increasingly being written for agents as well as people.

Use graph analytics to explore and refine

Alison says Neo4j’s Knowledge Graph Builder can extract entities and relationships from documents as a starting point for experimentation. Teams can inspect the resulting graph with counts and centrality measures, then refine an emerging ontology or compare it with a domain model. For retrieval and community detection, she advises letting evaluation questions guide the design.

Takeaways

  • Track prompts, responses, and retrieved documents together to see what influences application outcomes.
  • Test graph algorithms on a subset of data and refine the schema before scaling up.
  • Use community analysis to find duplicates, gaps, and clusters linked to poor ratings.
  • Preserve source relationships when collapsing near-duplicate chunks.
  • Evaluate reranking for diversity and importance when vector similarity returns repetitive results.

Mentioned in this talk

Search inside this talk

What was claimed 10

  • previously at
    Alison Cossette previously at Neo4j
    Developer Advocate
    “I'm with the developer relations team.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    GraphRAG: Uses graph traversal to provide retrieval context
    “their ability to traverse quickly and provide immediate context”
    YouTube
    Unverified1 source· Talk
  • metric
    Neo4j AuraDB: AuraDB Professional free trial described as seven days
    “I guess it's seven days. Seven days.”
    YouTube
    Unverified1 source· Talk
  • feature
    Neo4j AuraDB: Stores embeddings on graph nodes and supports vector indexes
    “The embedding is actually a property of the node itself”
    YouTube
    Unverified1 source· Talk
  • feature
    GraphRAG retriever: Can prefilter or post-filter retrieval results
    “You can prefilter or post-filter”
    YouTube
    Unverified1 source· Talk
  • metric
    Graph Data Science: Sample database has 17,000 nodes and 774,000 relationships
    “17,000 nodes, 774,000 relationships”
    YouTube
    Unverified1 source· Talk
  • feature
    Graph Data Science: Provides graph algorithms for similarity analysis, community detection, and centrality
    “we're looking to start leveraging these algorithms”
    YouTube
    Unverified1 source· Talk
  • feature
    Louvain: Optimizes modularity to identify densely connected communities
    “A community has high modularity when the connections within it are highly interconnected”
    YouTube
    Unverified1 source· Talk
Show all 10 facts

Related talks