Lesson 121 — Advanced

Capstone: LLMOps Project

Ab tak sab kuch alag-alag tha — ab ek project mein. Is lesson mein hum apne RAG application aur agent ko poore LLMOps loop se guzaraate hain: config aur pins se shuru karke, eval gate aur guardrails se hote hue, container stack aur CI/CD se deploy karke, aur monitoring + incident drill se finish karenge.

⏱ 30 min• Advanced• Incidents, Rollbacks & Change Management

Capstone mein kya banaoge

Kya hai?

Capstone = tumhara RAG app aur agent, ab poore production stack ke saath: config + pins, experiment history, eval gate in CI, runtime guardrails, containerized serving, deploy pipeline, dashboards aur ek runbook. Ek portfolio-grade artifact.

Kab kaam aata hai?

Is level ke end mein — aur uske baad bhi: jab bhi kisi team ko dikhana ho ki tum sirf demo nahi, production systems bhi chala sakte ho. Interview ka bhi yahi story ban jaati hai.

Kahan milta hai?

Tumhare repo mein: config files, eval suite, workflows, compose stack, dashboards config aur runbooks — sab ek hi project ke andar, ek README se juda hua.

Capstone ka success criteria simple hai: koi bhi machine pe clone karke ek command se stack up, aur har change ek gated release se guzarta hai. "Mere laptop pe chala" ka exit ho jaana hi capstone hai. L4 aur L5 ke apps hi base hain — naya banana zaroori nahi.

Scope rule: Chhota aur poora better hai: ek RAG app + ek agent, dono 100% LLMOps loop ke saath — do apps banane ke chakkar mein loop aadha reh jaaye toh capstone adhoora hai.

Release manifest — ek source of truth

release-manifest.yaml (repo mein, versioned):

app:
  rag:
    model: provider/model@version
    prompt: rag/system-prompt@v4
    retrieval: { chunk_size: 400, top_k: 8, rerank: true }
  agent:
    model: provider/model@version
    tools: [search_kb, fetch_doc, create_ticket]
    limits: { max_steps: 8, max_spend_usd: 0.05 }
eval:
  dataset: evals/v3          # git tag
  policy: gates/policy.yaml  # thresholds
deploy:
  images: { backend: tag, frontend: tag }
  stack: compose.yaml

# manifest badla = release hui — CI isi se check karta hai
Audit test: Kisi bhi commit pe poochho — "us waqt production mein kya chal raha tha?" Manifest commit + image tag = do line mein jawab. Ye test pass ho jaaye, tracking wala lesson kaam kar gaya.

Build order — ek sprint plan

sprint 1 (foundation):
  [ ] config + manifest + pinned deps + request tracing
  [ ] baseline experiment run (MLflow/Langfuse)
sprint 2 (quality):
  [ ] eval suite -> DeepEval tests + thresholds policy
  [ ] CI: tests -> eval gate -> image build + tag push
sprint 3 (runtime):
  [ ] guardrails: schema+reask, injection/PII scan, agent caps
  [ ] FastAPI + SSE + health/readiness + thin frontend
sprint 4 (ship & see):
  [ ] compose stack + secrets via env
  [ ] deploy (staging auto + prod approval) + ALB timeouts
  [ ] dashboards + alerts + trace links
  [ ] runbooks + ek game-day drill
Momentum tip: Har din ka aakhri step: changelog mein ek line + ek screenshot/report attach. Do hafte baad yahi artefacts interview story banenge — bina unke sab bhool jaoge kya-kyaa hua tha.

Demo checklist — kya dikhana hai

Demo ka order hi story hai: pehle quality (eval), phir safety (guardrails), phir operability (deploy, dashboard, incident). Ye teen pillar interview mein bhi hote hain — interviewer ko ek structured walkthrough do, feature list nahi.

Honesty wins: Jo adhoora hai wo bol do with plan — "guardrail false-positive tuning abhi adhoori hai, ye mera data hai". Capstone perfect hona zaroori nahi; reasoning depth aur honesty zyada matter karti hai.

Interview story — 3 minute version

3-minute narrative (template):

1. context  : do apps the (RAG + agent), production mein the
2. problem  : bina system ke har change gamble tha
3. actions  : manifest+tracking -> eval gate -> guardrails
              -> container stack -> CI/CD -> dashboards
4. proof    : ek regression gate ne pakda; ek incident drill
              mein fallback ne bachaya (numbers apne daalo)
5. learning : sabse bada lever kaunsa nikla (eval gate ya
              prompt registry?) aur kyun

# har point ek artifact se linked — screenshot, log, report
Final line: Capstone ka matlab portfolio piece bhi hai — repo public, README clean, ek command se demo. "Maine LLMOps seekha hai" aur "yehi proof hai" — doosra zyada bolta hai.

Exercise

Question: Release ke saare behaviour components kis ek file mein likhe jaate hain is project mein? (manifest / readme)

Question: Capstone ka clean-machine test kya maangta hai — ek command se stack ya manual setup?

Question: Demo ke guardrail segment ke liye kya dikhana chahiye — sirf pass ya ek block bhi?

Question: Interview story mein actions ke baad kya aata hai — excuses ya proof?

Common mistakes

Desi example: Apna restaurant kholna

Khana aata hai (app bana tha) — par restaurant matlab menu card (manifest), taste test har dish pe (eval gate), security (guardrails), supply chain (deploy), aur monthly audit (monitoring). Sirf khana aana kaafi nahi hota:

text
menu card      -> release manifest
quality check  -> eval gate in CI
bouncer        -> runtime guardrails
kitchen kit    -> containers + compose
delivery chain -> CI/CD + deploy
monthly audit  -> dashboards + traces
fire drill     -> incident game day

# yehi restaurant = production-ready LLM app
Interview angle — yahan se sawaal aate hain
  • Q: Capstone ko ek line mein describe karo? — Do LLM apps ko poore LLMOps loop se guzaraana: versioning, gate, guardrails, serving, deploy, monitoring.
  • Q: Release manifest ka purpose? — Har behaviour-changing component ek versioned source of truth mein; CI isi se gate trigger karta hai.
  • Q: Gate ka fast subset kyun PR pe? — Feedback tez aur sasta; full suite release pe final check — budget ke hisaab se.
  • Q: Sabse mushkil kya tha (star interview question)? — Apne asli struggle se bolo (jaise non-determinism thresholds) aur uska fix — process ki depth yahi dikhti hai.
Lesson complete?

Capstone complete — ab tumhara LLM app sirf demo nahi, ek operated system hai: versioned, gated, guarded, deployed aur monitored. Yahi LLMOps hai — aur yahi tumhara portfolio piece.

Popular courses: Data Science Course in Lucknow · AI Course in Lucknow · Python Course in Lucknow · Power BI Course · Data Analytics Course