⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’

Excalidraw Data

Text Elements

Source Documents

LLM Entity Extraction

🕸️ Knowledge Graph

Elon Musk

SpaceX

NASA

Tesla

EVs

Starship

Mars Mission

founded

competitor

CEO

industry

develops

for

Community Detection (Leiden)

Hierarchical Communities

Level 0:

Entire Graph Summary (1 community)

Level 1:

Space Technology

EV Industry

People

Level 2:

SpaceX Ops

NASA Contracts

Tesla Prods

EV Market

Executives

Query Time

Local Search

Entity-Centric Retrieval

• Extract entities from query

• Traverse graph (1-2 hops)

• Retrieve subgraph + chunks

Fast (~200-400ms)

Global Search

Map-Reduce Over Summaries

• Select community level

• Map: LLM call per summary

• Reduce: Synthesize answers

Slower (1-5s, 10+ LLM calls)

“Who founded SpaceX?”

“What are main themes?”

INDEXING PHASE (Offline)

QUERY PHASE (Runtime)