Labs โ€บ chatbot over company documents0 / 15

Step 1 of 15 ยท Intro

Design a chatbot over company documents

Employees ask questions; answers come from your documents with citations. Size retrieval, reranking, cache and model within a budget, and survive a cold cache and a provider outage.

How it works

  • โ€บIngest: a document is stored, queued, split into chunks, embedded and indexed with its access list and version.
  • โ€บRetrieve: the question finds candidate chunks by meaning (and keywords), filtered by what the user may read.
  • โ€บRerank: a sharper model re-scores the shortlist and keeps the best few.
  • โ€บGenerate: the model answers only from those passages and returns citations, or says it did not find the answer.

What you'll build

  1. The API and the document, chunk and chat data
  2. The question path and the ingestion path (queue and workers)
  3. A semantic cache and a budget
  4. Scaling to 7,000 questions a second with your own GPUs
  5. A provider outage, a cold cache, and the full peak design
  6. Deep dives: chunking, hybrid search, permissions, freshness, answer not found