Imagine: you built a RAG bot in an evening, the answers look reasonable, and you ship it to production. A week later the API bill is $450 at 300 requests a day, answers drift on long documents, and when asked "how much does this cost per user per month?" you reply "well, not much." Sound familiar? This is exactly where the line runs between "I can call an LLM" and "I am an AI engineer." Let's break down where these numbers come from and where a beginner gets stuck before they even start.
Where the numbers come from: tokens, not "requests"
The cost of an AI product is counted not in requests but in input and output tokens. A rough calculation for a RAG bot: a question is 50 tokens, 5 chunks of 500 tokens each are pulled in — that's 2,500 tokens of context, plus 300 tokens of answer. That totals about 2,850 tokens per dialogue. At 300 dialogues a day — 855,000 tokens daily. More on the topic: “RAG Chunking Strategy: The Chunk Size and Overlap Settings That Actually Raise Retrieval Accuracy”.
Multiply by your model's rate — and you get the order of the bill. And now the main point: 90% of those tokens are context that you yourself put there. Good retrieval cuts 5 chunks down to 2–3 precise ones, and the bill drops by half with no loss of quality. Bad retrieval pulls 10 "just in case," and you pay for noise that also confuses the model.
Why the bot lies: retrieval, not a "dumb model"
A typical beginner's mistake is to see a wrong answer and go change the model or add few-shot examples. In a RAG pipeline, answer quality is 70–80% determined by what ended up in the context. If the right paragraph wasn't found — no model will invent it correctly.
What breaks in practice:
- Character-based chunking. The document is cut into pieces of 1,000 characters — and the section heading stays in one chunk while the table stays in another. The answer loses its meaning. The fix: cut by structure (headings, paragraphs), with 10–15% overlap.
- Embeddings without domain normalization. The embedding model is trained on general text; it doesn't distinguish your company's internal terms. It's easy to check: take 20 real questions and see whether the correct chunk lands in the top-3. If it does for 12 out of 20 — retrieval needs fixing, not the prompt.
- No metric. People measure "by eye" on five questions. Build a fixed set of 30–50 questions with reference answers — and test any pipeline change against it. Without that, you're optimizing blind.
The fine-tuning that was never needed
A classic story: a team spends a month and a GPU budget fine-tuning a model to match the company's answer style — and then discovers that the style is set by the system prompt, and the facts still need to come from the database. Fine-tuning (LoRA, QLoRA) is about form and behavior, not fresh knowledge. If the task is "the model must know our price list as of yesterday" — that's RAG, not fine-tuning. If it's "the model must answer in our tone and in JSON format without errors" — then fine-tuning is justified. More on the topic: “Fine-Tuning, LoRA, QLoRA: How to Make an LLM Build Its Own Dataset, Train Without Burning GPU Hours — and Finally Stop Believing One Good Prompt Is Enough”.
More on choosing — in the article "RAG vs Fine-Tuning: How to Choose the Right LLM Adaptation Method and Avoid Paying for Extra Tokens". And if you do decide to fine-tune — the mechanics of LoRA and quantization are covered in "Fine-tuning LLMs: How LoRA and 4-bit Quantization Work — Mechanics and Pitfalls".
Agents: the price of autonomy
An agent with tool use and memory (a ReAct loop) looks like magic until you do the math. One user request turns into 3–8 model calls: think → call a tool → look at the result → call again. Multiply by the token price — and the agent costs 5–10 times more than a regular chat. Plus latency: 8 seconds versus 2.
The question isn't "should I build an agent" but "where is autonomy actually needed." If the scenario fits in three steps — write them in code instead of handing them over to the model. An agent is justified where the number of steps is unknown in advance: searching across several sources, multi-step calculations, working with external APIs depending on circumstances.
Vector databases: when Chroma is enough and when it isn't
At the start, almost everyone is fine with Chroma or FAISS — they're local, free, and spin up in a couple of lines. Qdrant and Pinecone are needed when you get: several million vectors, on-the-fly metadata filtering, horizontal scaling, an SLA. The price difference is noticeable: self-hosted Qdrant is your own server, Pinecone is a subscription by volume and requests.
Don't pick a database "for growth" — most projects hit the limits of embedding and chunking quality long before they hit the limits of storage performance. Search pitfalls and how to fix them — in the article "Vector databases — from search to RAG: why your RAG chatbot gives wrong answers and how to fix retrieval".
Deployment: where the demo dies
A demo on a laptop and production are different sports. In production you need: a container with a reproducible environment, a health check, timeouts on model calls (they fail), a request queue, and monitoring of three metrics — latency, cost, quality. The last is the hardest: quality can't be pulled from the system, it has to be measured on a held-out set of questions.
Budget for infrastructure in advance: inference, vector database, application server, logs. For a small product this is often a few hundred dollars a month on top of tokens — and these are exactly the numbers people forget to build into their unit economics.
Three learning paths and their honest price
| Path | Time | Money | Main risk |
|---|---|---|---|
| On your own from docs and articles | 6–12 months | Almost nothing | No feedback: errors in retrieval and quality evaluation aren't visible to you |
| Courses + your own projects | 3–6 months | Moderate | The curriculum may lag behind the tools; without practice — theory |
| Working on a team with a mentor | 2–4 months | Time + below-market salary | You need to get onto a team with a mature AI product |
The self-taught path is realistic if you already know how to read documentation and you have a project where you can measure results. A course wins on one thing — structure and feedback on your decisions: someone tells you your chunking is bad before you've spent a month living with a bad bot.
Who this path suits and who it doesn't
It suits you if you're a developer or ML practitioner, you can write code, and you're ready to count money and metrics, not just "make it look nice." It doesn't suit you if you expect "the model to do everything itself" — most of the work here is engineering: data, retrieval, infrastructure, observability. More on the topic: “LLM Engineering with LangChain: RAG and Agents — What Actually Separates a Demo from a Product”.
The Full-Stack AI Engineer course builds exactly this loop: breakdowns of RAG pipelines, agents, and deployment with review of your decisions and depth adjusted to your results — from the fundamentals to a production project. More on the topic: “Building RAG Systems: Chunking, Hybrid Search and Reranking in Real Production Pipelines”.