Problem
Raft built a clinical assistant for oncologists. A doctor asks, for example, what risks cisplatin chemotherapy carries for a patient with non-small cell lung cancer and diabetes. A standard vector RAG finds a passage about cisplatin and a passage about diabetes but does not connect them. The author, citing Gartner, says such cases are about 22% of queries. The answer misses the interaction that decides the treatment.
Example from the article: a standard RAG lists two true but isolated facts, while the hybrid graph system states the combined risk (cisplatin is nephrotoxic, diabetes causes nephropathy) and recommends monitoring kidney function and possibly adjusting the dose.
Solution in brief
Build a knowledge graph in Neo4j from the documents and measure eight retrieval variants on a golden set with DeepEval. Start from the cheapest variant and add complexity only when a customer need requires it. In this case, graph-native chunking gave the fewest hallucinations and hybrid graph plus vector search with Reciprocal Rank Fusion gave the best balance, so hybrid went to the customer.
Questions this case answers
- How to retrieve connected facts that are scattered across documents when similarity search returns only isolated passages
- How to compare several retrieval architectures on one golden set when each gains quality at the price of latency or cost
- How to reduce unsupported claims in generated answers when every fact must be traceable to a source document
- How to make a RAG assistant answer questions that need relations between facts spread over many documents?
Tools and methods
- Neo4j with GDS — graph store, Cypher queries, Louvain and Dijkstra
- LangChain — glue for chains and prompts (not LangGraph)
- DeepEval — faithfulness, answer relevancy, contextual recall
- GPT-4o — entity extraction, LLM judge, embeddings (text-embedding-3-large)
- CLIP — text descriptions of images for multimodal retrieval
- Reciprocal Rank Fusion — merges graph and vector result lists
Google or a one-time email code. No password.