AI Agents in Business Software: What They Can Do Today
What AI agents in business software can really do today, why many agentic AI projects fail, and how to build ones that last.
Two ways to make a general model work for your business, and how to pick the right one.
In short
RAG vs fine-tuning is one of the first technical choices in any generative AI product. Both make a general model useful for your business, but they solve different problems. Choosing the wrong one costs months: teams fine-tune to “teach facts” that go out of date, or build complex retrieval to fix a formatting problem a small fine-tune would solve.
Retrieval-augmented generation was introduced in a 2020 paper that combined a language model with a searchable index of documents, so the model could look up knowledge instead of relying only on what it memorised (Lewis et al.). In a product, the flow is:
Fine-tuning continues training a pretrained model on your own examples of inputs and desired outputs. Modern methods such as LoRA train only a small set of extra weights, which cut the number of trainable parameters by up to 10,000 times in the original paper’s tests (Hu et al.). That makes fine-tuning far cheaper than it used to be, but it still needs good training data and careful evaluation.
| RAG | Fine-tuning | |
|---|---|---|
| Best for | Facts, documents, knowledge that changes | Behaviour, format, style, narrow skills |
| Updating knowledge | Add or remove documents, instantly | Retrain the model |
| Citations | Natural: show the retrieved sources | Hard: knowledge is inside the weights |
| Access control | Filter documents per user | Hard to enforce inside a model |
| Data needed | Your documents | Hundreds to thousands of good examples |
| Main risks | Poor retrieval, stale or messy documents | Overfitting, forgetting, costly retraining |
Many production systems use both: a model fine-tuned to follow your answer format and cite sources, fed with documents from a RAG pipeline. Start with RAG and prompts, measure, and add fine-tuning only where the numbers show a gap.
From our work
We have taken AI into real products: the software of an autonomous warehouse drone for D-ARIA with more than 99% inventory accuracy (case study), and AI-based person following for a mobile robot with EFS Consulting. If you have an AI prototype, our free AI prototype to production review tells you what to keep, what to fix and what it will take.
If you are still choosing the model itself, start with how to choose a foundation model. If you have a working prototype, see how we take AI prototypes to production.
| Area | Typical tools |
|---|---|
| RAG | LangChain, LlamaIndex, pgvector, Qdrant, Weaviate, OpenSearch, rerankers |
| Fine-tuning | Hugging Face Transformers, PEFT, LoRA and QLoRA, Axolotl |
| Evaluation | Ragas, promptfoo, DeepEval |
| Serving | vLLM, TensorRT-LLM, managed model APIs |
For the operations side, read What is MLOps?
RAG retrieves relevant documents at question time and gives them to the model, so answers rest on your current data. Fine-tuning trains the model on examples to change how it behaves, such as format, tone or narrow skills.
Usually it is cheaper to start and to keep up to date, because you update documents instead of retraining. Its running cost grows with the amount of text sent to the model on each request.
Only unreliably. Facts learned in fine-tuning are hard to update, cannot be cited and may still be mixed with invented details. Use retrieval for facts and fine-tuning for behaviour.
Often, yes. A model fine-tuned to follow your format and cite sources works well on top of a good retrieval pipeline. Start with RAG and add fine-tuning where evaluations show a gap.
Send a few lines about the product, the deadline and the team you have today. A senior engineer replies within two working days.