LLM System Design interview question

Generative AILLM System DesignCloud & GCPRAGmedium

A retail client wants a customer-facing assistant over ~5,000 public help-center pages and product PDFs, live in six weeks, with a team of two engineers. Which recommendation is most defensible?

  1. AStart with a managed search and agent product such as Vertex AI Search, since the corpus is public and standard, and go custom only if the evals reveal gaps.
  2. BBuild a custom RAG stack from open-source components, since managed products return answers without the retrieved passages, so retrieval quality is invisible to evals.
  3. CFine-tune an open-weight model on the 5,000 pages instead of using retrieval, since a corpus this small is learned in a few epochs and then needs no search index.
  4. DBuild a custom stack, since per-query fees grow with retail traffic, while a self-built pipeline is mostly a one-off build cost that high traffic soon amortises.
Show the answer and explanation

Correct answer: A, Start with a managed search and agent product such as Vertex AI Search, since the corpus is public and standard, and go custom only if the evals reveal gaps.

Explanation LLM System Design

Build versus buy is decided by requirements, timeline and team, then confirmed with an evaluation on the client's own questions. Here the corpus is public and standard, the timeline is six weeks and the team is two people. A managed product such as Vertex AI Search brings connectors, parsing, chunking, hybrid retrieval, ranking, grounded answers with citations, scaling and security out of the box.

Favours managedFavours custom
standard documents and connectorsunusual formats needing custom parsing
fast time-to-value, small teamcustom ranking, domain embeddings, complex flows
built-in scaling and securitystrict on-prem or air-gapped requirements
quality good enough on the golden seteval shows a gap you can close yourself

Why the alternatives fail:

  • Managed search returns the retrieved documents, snippets and citations, so you can score retrieval and answers offline by running the golden set through its API like any other system.
  • Fine-tuning on 5,000 pages does not reliably store their facts in the weights, loses citations and freshness, and every content update would need a new training run.
  • A self-built pipeline is not a one-off cost: serving, index storage, on-call, upgrades and evals continue, and a delayed launch costs money too. At very high volume custom can win, but that is a calculation, not a rule.

Interview tip: "buy the commodity, build the differentiator". Propose a time-boxed bake-off on the client's golden set and agree upfront which measured gaps would trigger a move to a custom stack, so the decision is evidence-based.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Generative AI questions

  1. To save tokens, a bank adds an LLM extractor after retrieval that keeps only the sentences relevant to the question from each of the top 8 chunks. Context…
  2. A telecom's support assistant has no reference answers for live traffic, so the team wants implicit signals as quality proxies: the user rephrases the…
  3. A retailer trained a LoRA adapter on acme-8b (the base model). The serving team loads it onto acme-8b-instruct, which has the same architecture. It loads…
  4. Which statement about the HNSW parameters M, efConstruction and efSearch is correct?
  5. An e-commerce team writes product descriptions with a prompt that includes three example descriptions, all for one brand's running shoes. New descriptions for…