Design an Organization Knowledge Assistant with Tool Use
Design a permission-aware assistant that grounds answers in internal knowledge and safely invokes approved external tools.
Problem statement
For this exercise, assume an organization stores versioned internal documents and registers a bounded set of external read and write tools. Authorized users ask questions or request actions.
The assistant must retrieve only permitted knowledge, cite the evidence behind factual claims, choose tools through a reviewed registry, validate arguments, require policy approval for sensitive actions, and record an auditable result.
Ingestion and indexing may be asynchronous, while ordinary questions should complete interactively. Tool calls may time out, return stale data, or have outcome-ambiguous side effects. The assistant must never invent evidence, expose another tenant's data, or repeat a committed external action during retry.
Design ingestion, retrieval, planning, policy enforcement, tool execution, answer generation, audit, and recovery. Exclude model training and arbitrary unregistered code execution.
What to build
- Administrators can publish, replace, revoke, and inspect searchable versions of internal knowledge.
- Users can receive a grounded answer with citations restricted to their authorized scope.
- The assistant can invoke registered tools through policy checks, idempotent execution, and auditable outcomes.
- Insufficient evidence and ambiguous tool outcomes are returned explicitly instead of being fabricated or silently retried.
At scale
- Assume 50 million versioned knowledge records and 40 billion searchable chunks across tenants.
- Support 3,000 question requests per second and 300 tool-bearing requests per second globally.
- Target p95 grounded-answer latency below eight seconds when no tool is required and a 15-minute indexing freshness target.
- Permission revocation must affect new retrieval within sixty seconds, and committed tool actions must remain exactly-once from the user's perspective.