To

Towards agentic Graph RAG: Enhancing graph retrieval with vector search

Hacker News

Towards agentic Graph RAG: Enhancing graph retrieval with vector search

In this post, we document the results of some experiments comparing vanilla Graph RAG (just a single pass of text2cypher) vs. a router agent Graph RAG approach that can call vector search tools alongside text2cypher. The routing agent uses an LLM to decide which vector search tool to call, depending on the terms identified in the question, and it works quite well. The results show that recent frontier LLMs like `gpt-4.1` and the trusty workhorse `gemini-2.0-flash` produce great quality Cypher reliably and reproducibly, with some prompt engineering to ensure that the graph schema is formatted well in the text2cypher prompt. Across a suite of 10 test queries (that are moderately complex and require paths to be retrieved from the knowledge graph), `gpt-4.1` and `gemini-2.0-flash` pass all tests, generating the right answers when a router agent is added to the workflow to enhance vanilla Graph RAG. Prompt engineering is done using BAML (a programming language that makes it simple to prompt LLMs and get structured outputs from them in all experiments. In fact, the knowledge graph itself was constructed using BAML prompts that extract entities and relationships from unstructured data upstream. A logical next step to this workflow is to build more complex agent loops that can run multi-step Cypher queries whose results can be consolidated to answer harder questions (similar to how a human would approach it). The general principles of testing and evaluation would apply here, too. Seems promising to explore these methods further!

Share card

Actual performance

6points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, agentic, single · Missing: mac, agents, macos
95%95% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: gemini · Missing: supports, reddit linkedin, podcasting
82%82% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: lua, ide, io · Missing: https docs, excited, just released
48%48% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: answers · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
12%12% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Gr
GraphQL+-, a Variant of GraphQL for Graph DBs76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GraphQL+-, a Variant of GraphQL for Graph DBs

Hacker News7
A
A graph of the 'related entries' on Stanford Encyclopedia of Philosophy40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A graph of the 'related entries' on Stanford Encyclopedia of Philosophy

Hacker News1
Co
Covid-19, Graph the Curve46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Covid-19, Graph the Curve

Hacker News2
Rh
Rhythmic Graph55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rhythmic Graph

Hacker News1
El
Election Lie Graph32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Election Lie Graph

Hacker News2
We
Weighted # of Lies from Each Candidate (Graph)51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Weighted # of Lies from Each Candidate (Graph)

Hacker News3
Mo
MongoDB + GraphViz = mongo-graph57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MongoDB + GraphViz = mongo-graph

Hacker News14
C/
C/C++ source code graph RAG based on Clang/clangd55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C/C++ source code graph RAG based on Clang/clangd

Hacker News3
Ch
ChimeraDB – Vector search, graph queries and SQL65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ChimeraDB – Vector search, graph queries and SQL

Hacker News3
Gr
Graph search for the Brexit deal with Clojure/CLJS/force-graph51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Graph search for the Brexit deal with Clojure/CLJS/force-graph

Hacker News2