Interface Lab
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.

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. GOV.UK Design System Patterns: https://design-system.service.gov.uk/patterns/ Carbon Patterns: https://carbondesignsystem.com/patterns/ Shopify Polaris: https://polaris-react.shopify.com/ Atlassian Design System: https://atlassian.design/ Design Systems Repo: https://designsystemsrepo.com/

Agent Directive

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