KatInterview

Design an Enterprise Assistant for Internal Knowledge and Workflows

System DesignModel answer
MediumModel answerSystem DesignRAGLLMAccess Control

Last updated

Design a secure, low-latency enterprise AI assistant that performs retrieval-augmented generation across internal data sources and executes tool workflows under strict access controls.

Design an internal AI assistant for employees within a company. The system should answer natural language queries by searching internal data repositories (such as internal wikis, task trackers, runbooks, and chat logs) and perform actions via internal tools.

Core Requirements

  1. Natural Language Interface & Grounding: Users interact via natural language. Responses must provide inline citations pointing back to source documents when relaying facts.
  2. Strict Access Control (ACLs): The assistant must enforce granular permissions. A user should never see, hear, or infer information from sources they lack authorization to access directly.
  3. Dual Functionality:
    • Knowledge Q&A (RAG): Synthesizing answers across unstructured and semi-structured internal docs.
    • Operational Workflows (Tool Use): Executing tasks such as filing tickets, searching structured status systems, or fetching live system runbooks.
  4. Auditability & Security: Comprehensive logging of queries, accessed documents, tool executions, and system decisions. The system must prevent data leakage and prompt injection attacks.
  5. Interactive Latency: Time-to-first-token should feel interactive (under 1.5 seconds), with full completion within a few seconds.

Describe your end-to-end system design. Address high-level architecture, permission enforcement mechanisms, vector and hybrid retrieval strategies, tool execution safety, and production evaluation/monitoring.