Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Chatbot over Tables and Documents

Answer authenticated analyst questions using safe structured queries, document retrieval, and grounded evaluation.

Problem statement

For this exercise, assume authenticated analysts ask natural-language questions over approved read-only metrics tables and versioned policy documents. A question may require table values, document passages, both, or a clarification.

The chatbot must answer from currently authorized, versioned evidence and identify each supporting table result or document passage.

A table snapshot, semantic-schema version and document-index generation are pinned for one answer; if sources conflict or are insufficient, expose the uncertainty rather than inventing a reconciliation.

Structured data access uses approved semantic fields and a deterministic read-only query broker with authorization and cost limits. The model may propose a query but cannot execute arbitrary SQL or change data. The document path retrieves only complete published versions that the analyst may read.

Design data collection and ingestion, request routing, retrieval/query paths, response composition, evaluation, model choice, and safe release.

The Google onsite report explicitly asks for a chatbot over structured and unstructured data and mentions high-level design, data collection, evaluation, and when to use RAG versus fine-tuning. The analyst domain, schema, limits and security details are practice assumptions.

Fine-tuning can change behavior or terminology but does not become the authority for fresh private facts. Editing documents, authoring permission policy, and building a foundation model are outside scope.

What to build

  1. An authenticated analyst can ask one question and receive a grounded answer, explicit clarification, or unavailable result across table-only, document-only and combined evidence.
  2. The platform ingests approved tables and document versions and exposes reproducible, currently authorized query results and passages to the answer path.
  3. Structured queries are read-only, validated, authorized and cost-bounded; retrieval and final answer checks never reveal revoked or partial source versions.
  4. Operators can collect permitted feedback, evaluate factuality, query correctness and permission safety by question type, then promote or roll back pinned model, prompt, retrieval and schema releases.

At scalePractice assumption

  • 1,000 approved read-only tables and 100,000 published document versions support 100 question requests per second at peak.
  • Complete healthy answers target five seconds at p95; both structured query and document retrieval have bounded sub-deadlines and explicit partial or unavailable outcomes.
  • A versioned evaluation set includes table-only, document-only, combined, ambiguous and unanswerable questions with evidence and authorization expectations.
  • A final answer must not contain evidence from a source the analyst cannot currently access; changed access or unpublished source generations fail closed for that evidence.