โ† Simulation Lab

๐Ÿ’ฌ Run an AI chatbot within budget

Data & AI

A college wants an AI helpdesk. Pick the model size, answer length, caching and whether to ground answers in its own documents (RAG). Watch monthly cost, speed and answer quality. (Illustrative prices and scores.)

โญ Level 1: Trainee0 XP ยท next level at 300
๐ŸŽฏ Keep quality 85+ and answers under 5 s, for under โ‚น50,000 a month at 3,000 questions a day.
Controls
Results
Monthly costโ‚น6,18,750
Time to answerโœ— 12.9 s
Answer quality (score)โœ“ 93/100

Too slow: shorter answers or a faster model.

๐Ÿ“˜ How it works

AI cost is tokens ร— price. Long prompts, long answers and big models multiply it. Engineers cut cost with caching, shorter prompts and smaller models, and raise quality by grounding answers in real documents (RAG).

Cost = calls ร— (input tokens ร— input price + output tokens ร— output price) ยท Time โ‰ˆ output tokens รท tokens per secondA simplified textbook model for learning. Real designs follow the full codes and standards.