UI DESIGN LAB
  • Home
  • Community
  • Library
  • Knowledge
  • Docs
ZHLogin
Back to knowledge
Design Systems Page Patterns

RAG Retrieval to Generation Rule

Knowledge hits should become design constraints, not visible page copy copied from the knowledge item.

ragagentgeneration

Design Principle

RAG improves decision quality and traceability; it should not make pages recite theory.

Principle RAG improves decision quality and traceability; it should not make pages recite theory.

Design action Only published knowledge title, summary, principle, and agent_directive enter agent context; page copy must be newly written for the user task.

Examples Positive example: Agents retrieve knowledge before page planning. Counterexample: agent_directive is shown directly to end users.

Apply when Agents retrieve knowledge before page planning. The user brief benefits from design principles.

Source notes Source note: Synthesized from GOV.UK, Carbon, Polaris, Atlassian, Design.Systems, Design Systems Repo, and product-pattern libraries.

Agent Directive

Only published knowledge title, summary, principle, and agent_directive enter agent context; page copy must be newly written for the user task.

Apply When

  • Agents retrieve knowledge before page planning.
  • The user brief benefits from design principles.

Avoid

  • agent_directive is shown directly to end users.
  • Draft or private knowledge enters public generation context.

Knowledge Metadata

Category
Design Systems Page Patterns
Quality
82%
Version
v1
Published
6/6/2026