Knowledge Graph

Knowledge graph is an AI UX pattern that visualizes entities and relationships behind retrieved or generated knowledge, often for RAG systems. Users explore how sources and concepts connect instead of reading a flat list of chunks.

Share

Interactive demo

Answer · sources

Query

Ask

“What’s Acme’s renewal status?”

  • matchesAcme Corp
  • retrievesRenewal policy

Overview

The design problem

How might we design knowledge graph so people can trust and act on AI output?

Use this pattern

When this pattern fits

  • Ideal for research tools, RAG systems, and knowledge management applications where visualizing information relationships builds trust and understanding.

Avoid this pattern

When to skip or lighten it

  • Simple FAQ bots where a short citation list is enough.
  • Mobile-first chats with no room for a graph canvas.
  • Answers grounded in a single document with no meaningful relations.

States

State model coming soon

Key UX elements

Key UX elements coming soon

Anti-patterns to avoid

  • Decorative graphs that do not link back to readable sources.

  • Hairball layouts with dozens of unlabeled nodes.

  • Graphs that imply certainty for weak or inferred edges.

  • No filter or search, forcing users to pan endlessly.

How products use it

ProductImplementation
HebbiaDocument and concept maps for research workflows.
ObsidianLocal graph views of linked notes and references.
Roam ResearchBidirectional link graphs for knowledge bases.
LogseqOutline-linked graph navigation for personal knowledge.

Implementation

Copy this prompt to generate a production-ready implementation in Cursor, Claude Code, Lovable, or any AI coding agent.

Generate a production-ready implementation of the "Knowledge Graph" AI interface design pattern.

Pattern Definition:

Frequently asked questions

When does a knowledge graph help AI UX?

When users must understand relationships across many sources—research, investigations, or enterprise knowledge—not for one-shot chat answers.

How does it relate to retrieval preview?

Retrieval preview lists chunks. A knowledge graph shows how entities in those chunks connect. They often sit side by side.

What makes a graph trustworthy?

Clickable nodes that open sources, labeled edge types, and honest treatment of inferred vs extracted links.

Should every RAG product ship a graph?

No. Start with citations and source browser. Add a graph when relation questions dominate user tasks.

Weekly AI UX in your inbox

Weekly AI interface UX notes and resources on Substack, no spam, unsubscribe anytime.

Subscribe on Substack