WhoBuilt

HybridRAG: A Fusion of Graph and Vector Retrieval

Jul 22, 2025· 20 min· 25K views·Watch on YouTube

Speaker

Mitesh Patel, who leads developer advocacy at NVIDIA, explains how to build and tune GraphRAG and hybrid retrieval systems at the AI Engineer Worldfair Conference, drawing on work with a partner and NVIDIA colleagues.

Why represent knowledge as a graph

A knowledge graph represents entities and their relationships as triplets. Patel says those connections can preserve details that semantic retrieval misses and help answer questions that depend on how entities relate. Graphs can also organize information from multiple sources.

Build the graph and vector index

Patel divides the workflow into offline data preparation and online querying. For the graph, an LLM extracts triplets from unstructured documents using an ontology specified in the prompt; he says refining that ontology and reducing noisy triplets takes substantial effort. For the vector index, documents are split into overlapping chunks, embedded, and stored.

Tune graph retrieval and evaluate answers

Retrieval can follow links across multiple nodes, but deeper searches add context at the cost of latency. Patel recommends finding a workable balance and describes using cuGraph, including through NetworkX, to speed up graph algorithms. He also discusses evaluating retrieval and responses with Ragas and measures such as faithfulness, relevance, precision, and recall.

Improve quality and choose an approach

In an experiment on 100 documents, Patel reports accuracy rising from 71% with Llama 3.3 as-is to 87% after fine-tuning Llama 3.1 with LoRA, with further gains from data cleaning and shorter outputs. He cautions that results may fall on larger document pools. Whether to use graph, vector, or hybrid retrieval depends on the data and whether the application needs to answer questions about complex relationships.

Takeaways

  • Define and test the ontology carefully: noisy triplets can make retrieval noisy.
  • Use overlapping chunks in the vector index to retain context across chunk boundaries.
  • Tune graph search depth against the latency your application can tolerate.
  • Evaluate retrieval and generated answers separately with measures such as precision, recall, faithfulness, and relevance.
  • Choose graph retrieval when the data and questions depend on complex entity relationships, and account for its compute cost.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • works at
    Developer Advocacy Manager / senior developer advocacy leader
    “I lead the developer advocacy team at NVIDIA.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    GraphRAG: Multi-hop retrieval explores relationships across multiple graph nodes
    “exploring multiple nodes”
    YouTube
    Unverified1 source· Talk
  • integrates with
    cuGraph integrates with NetworkX
    “available or integrated in a lot of libraries out there, like NetworkX.”
    YouTube
    Unverified1 source· Talk
  • built
    “We created a library called cuGraph.”
    YouTube
    Unverified1 source· Talk
  • feature
    Ragas: Evaluates the response, retrieval, and query in a RAG workflow
    “it evaluates the response, the retrieval, and the query.”
    YouTube
    Unverified1 source· Talk
  • metric
    Llama 3.1: Fine-tuning with LoRA increased accuracy from 71% to 87% on 100 documents
    “our accuracy went from 71% to 87%.”
    YouTube
    Unverified1 source· Talk

Related talks