← Amirmohammad Nouri

MultiHopRAG

Medical question answering with a knowledge graph and vector search

2026 · Solo

MultiHopRAG

Overview

Standard vector RAG retrieves text that sounds like the question. It can't connect facts across documents, such as “What complications can result from the condition that the A1C test diagnoses?”, which needs A1C → diabetes → complications across two articles. This system extracts a knowledge graph from the same MedlinePlus articles and combines graph traversal with vector retrieval at query time.

Qwen3-1.7Blocal LLM via Ollama
1–2graph hops per query
3ablated retrieval modes
$0fully local, no API keys

How it works

Design decisions

Gallery

Stack

PythonOllamaQwen3-1.7Bnomic-embed-textQdrantNeo4j · CypherDocker ComposeFastAPIStreamlit